26.07.2012, 16:53
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/smokebomb", true))
{
SendClientMessage(playerid, 0xFFFFFFFF, "You planted a smokebomb!");
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
CreateObject(18716, x, y, z, 0, 0, 0, 250.0);
return 1;
}
return 0;
}