18.07.2010, 07:25
(
Последний раз редактировалось iggy1; 18.07.2010 в 07:41.
Причина: typos
)
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 3.0, 249.0186,1842.6013,8.7672))
{
CreateExplosion(249.0186,1842.6013,8.7672, 2, Float:5);
new string[128]; new playerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, playerName, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s Was Exploded by the anti attack!", playerName);
SendClientMessageToAll(COLOR_RED, string);
}
EDIT: Or try this:
At bottom of script
pawn Код:
stock playername(playerid)
{
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid,pname,sizeof(pname));
return pname;
}
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 3.0, 249.0186,1842.6013,8.7672))
{
CreateExplosion(249.0186,1842.6013,8.7672, 2, Float:5);
new string[128];
format(string, sizeof(string), "%s Was Exploded by the anti attack!", playerName(playerid));
SendClientMessageToAll(COLOR_RED, string);
}