09.12.2012, 10:24
pawn Код:
// At the bottom
stock ProxDetector(Float:radi, playerid, string[],color)
{
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
for(new player;player<MAX_PLAYERS;player++)
{
if(!IsPlayerConnected(playerid))continue;
if(IsPlayerInRangeOfPoint(playerid,radi,x,y,z))SendClientMessage(player,color,string);
}
}
// AND
stock GivePlayerCash( playerid, money )
{
return SetPlayerMoney( playerid, GetPlayerMoney( playerid ) + money );
}