27.08.2012, 14:55
Classic script.
pawn Код:
CMD:teleammu(playerid,params[])
{
SetPlayerPos(playerid,286.148987,-40.644398,1001.569946);
SetPlayerInterior(playerid,1);
SendClientMessage(playerid, 0xFF0000, "You've teleported to Ammunation.Use /robammu to attempt a robbery");
return 1;
}
CMD:robammu(playerid,params[])
{
if(GetPlayerWantedLevel(playerid)>1)
return SendClientMessage(playerid, 0xFF0000, "You need to have 0 wanted level to use this command.");
if(IsPlayerInRangeOfPoint(playerid,286.148987,-40.644398,1001.569946))
return SendClientMessage(playerid, 0xFF0000, "You need to be at ammunation robbery point to use this command");
GivePlayerMoney(playerid,10000);
SetPlayerWantedLevel(playerid(GetPlayerWantedLevel(playerid)+1))//If there's error/warning in this line,PM me.
new string[256];
format(string, sizeof, (string)), "%s has robbed Ammunation",GetPlayerName);
SendClientMessageToAll(0xFF0000,string);
return 1;
}
return 0;
}