15.09.2012, 13:02
So, my friend gave me that script where I found the command I wanted, and when I put it in my script it goes error 017: undefined symbol "GetName". The command is:
Код:
YCMD:explode(playerid, params[], help)
{
new Float:x, Float:y, Float:z;
#pragma unused help
new id,string[128], string2[128];
if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdmin] >= 1)
{
if(sscanf(params,"ui", id)) return SendClientMessage(playerid, WHITE,"Use: /explode [ID]]");
else if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, RED, "Invalid ID");
else
GetPlayerPos(id, x, y, z);
CreateExplosion(x, y, z, 7, 10.0);
CreateExplosion(x, y, z, 8, 10.0);
format(string, sizeof(string),"You've blowen %s up.",GetName(id));
SendClientMessage(playerid, 0x00B9D4FF, string);
format(string2, sizeof(string2),"You've been blowen up by admin %s",GetName(playerid));
SendClientMessage(id, 0x00B9D4FF, string2);
}
else SendClientMessage(playerid, RED, "You re not an admin.");
return 1;
}

