26.08.2012, 11:14
Here's a simple robbank system.
Im sorry if mistakes are there because I did this through mobile..
Edit:Oh many links b4 posting. O.o
pawn Код:
CMD:robbank(playerid,params[])
{
#pragma unused params
if(IsPlayerInRangeOfPoint(playerid, x, y, z); //Replace X Y Z with your bank rob point(coordinate)
return SendClientMessage(playerid, 0xFF0000, "You need to be at Bank to rob");
GivePlayerMoney(playerid,50000);
SendClientMessage(playerid, 0xFF0000, "You've successfully robbed bank");
format(string, sizeof(string), "%s has robbed bank",GetPlayerName);
SendClientMessageToAll(0xFF0000,string);
return 0;
}
Edit:Oh many links b4 posting. O.o