Skripta koju koristim:Svoju od 0
Detaljan opis problema:Kako da namestim kada nekom dam wanted da on pocrveni ..?
Dio skripte://
Neke slike/video za lakse dobivanje pomoci(neobavezno)://
[Pomoc]Gamemod0
966
pregleda
7
postova
21. Mar. 2011.
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 / BIA / Swat !");
}
}
return 1;
}
ewo
{
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 / BIA / Swat !");
}
}
return 1;
}
ewo
Wheel Man
Novi Član
90 / 100 XP
🌱Početnik(0)
27
Postovi:
3
Teme:
Pridružio se:Mar. 2011
21. Mar. 2011.
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);
SetPlayerColor(giveplayerid, BOJA);
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 / BIA / Swat !");
}
}
return 1;
}
21. Mar. 2011.
Al ste pametni, sada ste mu dali komandu, a nista mu niste objasnili! 😐
Evo ja cu da ti objasnim:
SetPlayerColor(playerid, BOJA); // SetPlayerColor postavlja boju igraca, playerid je ID igraca, u ovom slucaju koristis giveplayerid, BOJA je boja koja ce se postaviti!
Evo ja cu da ti objasnim:
SetPlayerColor(playerid, BOJA); // SetPlayerColor postavlja boju igraca, playerid je ID igraca, u ovom slucaju koristis giveplayerid, BOJA je boja koja ce se postaviti!
22. Mar. 2011.
Quote from March 21, 2011, 10:07 pm:
Al ste pametni, sada ste mu dali komandu, a nista mu niste objasnili! 😐
Evo ja cu da ti objasnim:
SetPlayerColor(playerid, BOJA); // SetPlayerColor postavlja boju igraca, playerid je ID igraca, u ovom slucaju koristis giveplayerid, BOJA je boja koja ce se postaviti!
Evo ja cu da ti objasnim:
SetPlayerColor(playerid, BOJA); // SetPlayerColor postavlja boju igraca, playerid je ID igraca, u ovom slucaju koristis giveplayerid, BOJA je boja koja ce se postaviti!
Jesmo, playerid ?
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava