Detaljan opis problema😛a ako zeli neko da mi editira komandu,/stop kad pise Policajac na glavi da mu pise STOP POLICIJA,ama ne /stop ID ne tako samo pishes i pojavi STOP POLICIJA
Dio skripte:
if(strcmp(cmd, "/sp", true) == 0 || strcmp(cmd, "/stop", true) == 0) // By Ellis
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged == 0)
{
SendClientMessage(playerid, COLOR_WHITE, "{FF0000}GRESKA:{FFFFFF}Ne ste logirani.");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "{FF8306}KORISTI:{FFFFFF} /sp.");
return 1;
}
if(PlayerInfo == 1 || PlayerInfo == 1)
{
SendClientMessage(playerid, COLOR_WHITE, "{FF0000}GRESKA:{FFFFFF}Ne ste policaec.");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if(ProxDetectorS(8.0, playerid, giveplayerid))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "STOP-Policija");
SetPlayerChatBubble(playerid, string, COLOR_RED, 100.0, 5000);
}
}
}
}
return 1;
}Neke slike/video za lakse dobivanje pomoci(neobavezno):
