Posts: 625
Threads: 38
Joined: Nov 2011
Quote:
Originally Posted by Jarnu
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; }
Hope it will help
|
Worked! Thank you very much! + rep'd.