24.03.2010, 09:02
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/plantbomb", true))
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
SendClientMessage(playerid, 0xFFFFFFFF, "Bomb Planted.");
// Do other stuff
CreateExplosion(x, y, z, 12, 10)
}
return 0;
}