04.08.2010, 15:00
i tested a bit with explosions just 4 fun but it wont work -.-
Код:
if(strcmp(cmd, "/burn", true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "/burn [PlayerID/Name]");
return 1;
}
playerid = strval(tmp);
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
if(IsPlayerConnected(giveplayerid))
{
if(IsPlayerAdmin(playerid))
{
if(IsPlayerConnected(giveplayerid))
{
new Float:explosionx, Float:explosiony, Float:explosionz;
GetPlayerPos(giveplayerid, explosionx, explosiony, explosionz);
CreateExplosion(explosionx, explosiony , explosionz, 1, 1);
}
else
{
format(string, sizeof(string), "%d is offline.", giveplayerid);
SendClientMessage(playerid, COLOR_YELLOW, string);
}
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "SERVER: Unknown command.");
}
}
return 1;
}

