17.03.2014, 23:19
Hi.I Make Rob Player Script But Not Work. Any On Can Fix It ? Not Give money To Robber....
Код:
new current_zone = player_zone[playerid]; new mrand = random(5000000); // A random number between 0 and 500000 SendClientMessage(playerid,COLOR_DEADCONNECT,"[[_Robber_]]"); format(string,sizeof(string),"Ribbed $%d From %s(%d). Nice Rob!",mrand,PlayerName(ID),ID); SendClientMessage(playerid,COLOR_RED,string); GivePlayerCash(playerid, mrand); // Remove the money that was stolen from the player IncreaseWantedLevel(playerid,8); HasRobbedRecently[playerid] =180; SetPlayerScore(playerid, GetPlayerScore(playerid) + 1); SendClientMessage(ID,COLOR_DEADCONNECT,"[[Robber]]"); format(string,sizeof(string),"Robbed From You $%d By %s(%d) !",mrand,PlayerName(playerid),playerid); SendClientMessage(ID,COLOR_RED,string); GivePlayerCash(playerid, -mrand); // Remove the money that was stolen from the player