19.12.2009, 13:04
pawn Код:
new giveplayerid, moneys, idx;
new Float:x, Float:y, Float:z;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsStringAName(tmp))
{
giveplayerid = GetPlayerID(tmp);
}
else
{
giveplayerid = strval(tmp);
}
if (IsPlayerConnected(giveplayerid))
{
GetPlayerPos(playerid, x, y, z);
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(IsPlayerInRangeOfPoint(giveplayerid, 0.5, x, y, z))
{