26.07.2012, 16:46
Hey guys, I just tried to make a simple smokebomb filterscript, but for some reason when I do the cmd ingame, the text dosen't get displayed and the object does not appear, check out the code and please tell me the problem:
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/smokebomb", cmdtext, true, 10) == 0) { SendClientMessage(playerid, -1, "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; }