18.01.2013, 06:31
pawn Код:
new Robber[MAX_PLAYERS];
forward Robplace(playerid);
// under the https://sampwiki.blast.hk/wiki/OnPlayerEnterCheckpoint
//for tips ^^
SetTimerEx("RobPlace", 9000, false, "i", playerid);
public RobPlace(playerid)
{
SetPlayerWantedLevel(playerid, 3);
Robber[playerid] = 1;
for(new i=0; i<MAX_PLAYERS; i++)
{
new robcash = GetPlayerMoney(i)/i; // < untested never did it like this b4 but it is suppose to work......
GivePlayerMoney(playerid, 10000000/robcash);
}
new robstring[256];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(robstring, sizeof(robstring), "%s Is Robbed the bank", name);
SendClientMessageToAll(-1, robstring);
return 1;
}
Hope this help you in some way