24.09.2009, 20:32
pawn Код:
//The command
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/airstrike", true)==0)
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
CreateExplosion(X, Y, Z, 7, 100);
CreateExplosion(X+5, Y, Z, 7, 100);
CreateExplosion(X, Y+5, Z, 7, 100);
CreateExplosion(X-5, Y, Z, 7, 100);
CreateExplosion(X, Y-5, Z, 7, 100);
CreateExplosion(X+10, Y, Z, 7, 100);
CreateExplosion(X, Y+10, Z, 7, 100);
SendClientMessage(playerid, 0xFFFFFFAA, "Airstrike on your position in 7 seconds!");
return 1;
}
return 0;
}