14.05.2012, 16:35
pawn Код:
if(strcmp(cmd, "/robplayer", true) == 0)
{
if(gPlayerLogged[playerid] == 0)
return SendClientMessage(playerid, COLOR_GREY, " Nu te-ai logat!");
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
return SendClientMessage(playerid, COLOR_GRAD2, "UTILIZEAZA: /robplayer [IDJucator/PARTEdinNUME]");
new cash = GetPlayerMoney(playerid);
new Float:steal = cash * 0.10;
format(string, sizeof(string), "* %s a i-a furat %s RON lui %i.", sendername,floatround(steal), playerid);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerMoney(playerid, floatround(steal));
for(new i; i < MAX_PLAYERS; i++)
if(IsACop(i))
{
format(string, sizeof(string), "DISPECER: Toate unitatile, %s este suspectat de spargerea unui Bancomat",sendername);
SendClientMessage(i, TEAM_BLUE_COLOR, string);
}
return 1;
}