[Pomoc] boja imena kad ima neko wl.

6. Feb. 2012. Zaključano
744
pregleda
11
postova
cfg:)
5
Underboss
6. Feb. 2012.
Skripta koju koristim:FC
Detaljan opis problema: kako da napravim kada neko ima wl da mu je crveno ime kad prodje wl da nije vise.
Dio skripte:/
Neke slike/vid://
Luis
5
Godfather
[Bp]D.N
5
Kingpin
6. Feb. 2012.

SetPlayerColor(playerid, 0xFFFF00AA);

Izmenis samo boju i stavis u /suspect tamo gde daje wanted igracu i eto ti 😉
cfg:)
5
Underboss
6. Feb. 2012.
gdje treba nez a hoce li biti crveno njemu ime kad on sam uradi zlocin? evo komande-
if(strcmp(cmd, "/suspect", true) == 0 || strcmp(cmd, "/su", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if(OnDuty == 1 && PlayerInfo == 2 || OnDuty == 1 && PlayerInfo == 2 || OnDuty == 1 && PlayerInfo == 1 || OnDuty == 1 && PlayerInfo == 1 || OnDuty == 1 && PlayerInfo == 11 || OnDuty == 1 && PlayerInfo == 11) { }
else
{
    SendClientMessage(playerid, COLOR_GREY, "  Niste na duznosti!");
    return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: (/su)spect [ID Igraca/Dio Imena] [opis zlocina]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if (gTeam == 2 || IsACop(playerid))
{
if(IsPlayerConnected(giveplayerid))
{
    if(giveplayerid != INVALID_PLAYER_ID)
    {
if (gTeam != 2)
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext <= ' '))
{
idx++;
}
new offset = idx;
new result;
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext;
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: (/su)spect [ID Igraca/Dio Imena] [crime text]");
return 1;
}
if(WantedPoints == 0) { WantedPoints = 3; }
else { WantedPoints+= 2; }
SetPlayerCriminalEx(giveplayerid,playerid, result);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "  Ne mozete optuziti policajca !");
}
}
}
else
{
format(string, sizeof(string), "  %d nije aktivan igrac.", giveplayerid);
SendClientMessage(playerid, COLOR_GRAD1, string);
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "  Niste Policajac / FBI / Swat !");
}
}
return 1;
}


hoce neko pomoci  😢 😢 😢 😢 😢 😢 😢 😢
[Bp]D.N
5
Kingpin
6. Feb. 2012.

if(strcmp(cmd, "/suspect", true) == 0 || strcmp(cmd, "/su", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if(OnDuty == 1 && PlayerInfo == 2 || OnDuty == 1 && PlayerInfo == 2 || OnDuty == 1 && PlayerInfo == 1 || OnDuty == 1 && PlayerInfo == 1 || OnDuty == 1 && PlayerInfo == 11 || OnDuty == 1 && PlayerInfo == 11) { }
else
{
    SendClientMessage(playerid, COLOR_GREY, "  Niste na duznosti!");
    return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: (/su)spect [ID Igraca/Dio Imena] [opis zlocina]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if (gTeam == 2 || IsACop(playerid))
{
if(IsPlayerConnected(giveplayerid))
{
    if(giveplayerid != INVALID_PLAYER_ID)
    {
if (gTeam != 2)
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext <= ' '))
{
idx++;
}
new offset = idx;
new result;
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext;
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: (/su)spect [ID Igraca/Dio Imena] [crime text]");
return 1;
}
if(WantedPoints == 0) { WantedPoints = 3; }
                                                        SetPlayerColor(playerid, 0xFFFF00AA);
else { WantedPoints+= 2; }
SetPlayerCriminalEx(giveplayerid,playerid, result);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "  Ne mozete optuziti policajca !");
}
}
}
else
{
format(string, sizeof(string), "  %d nije aktivan igrac.", giveplayerid);
SendClientMessage(playerid, COLOR_GRAD1, string);
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "  Niste Policajac / FBI / Swat !");
}
}
return 1;
}

Evo izvoli,molim moderatore da sada ovo Lockaju.
cfg:)
5
Underboss
6. Feb. 2012.
C:\Documents and Settings\kk\Desktop\un\gamemodes\sarajevo.pwn(30762) : error 029: invalid expression, assumed zero

Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

1 Error.


ova linija  😢 😢

ovdje eror    else { WantedPoints+= 2; }      😢
Ljube_Savic
4
Enforcer
7. Feb. 2012.
a sta da stavi da mu ime bude belo kad prodje wanted ??
boban1995
4
Enforcer
7. Feb. 2012.
pod
public SetPlayerCriminal
stavi ovo
SetPlayerColor(playerid, COLOR_RED);

to isto stavi i pod
public SetPlayerCriminalEx


e sad kad mu nestane wanted stavis pod
public ClearCrime
  stavis ovo
SetPlayerToTeamColor(playerid);


Tako nesto sam i ja uradio i radi.... 😉
cfg:)
5
Underboss
7. Feb. 2012.
bobane mozes u toj skripti to ubacit pa post nez gdje treba :S

edit:evo samo da se compile pa cemo vidjeti radi li  😉
boban1995
4
Enforcer
7. Feb. 2012.
¢fg🙂 wrote on February 7, 2012, 2:48 pm:
bobane mozes u toj skripti to ubacit pa post nez gdje treba :S

edit:evo samo da se compile pa cemo vidjeti radi li  😉


i jel radi ?
cfg:)
5
Underboss
7. Feb. 2012.
radi ko svicarski sat hahaah salim se brate radi odlicno sve hvala ti care <3 <3  😉

moze sada lock!

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha