24.09.2011, 04:28
Quote:
Код:
if(strcmp("/verobjecto", cmdtext, true, 11) == 0) { new Float:O[3] ; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) return SendClientMessage(playerid, 0xFF0000AA, "Use: /verobjecto [x] [y] [z]"); O[0] = strval(tmp); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) return SendClientMessage(playerid, 0xFF0000AA, "Use: /verobjecto [x] [y] [z]"); O[1] = strval(tmp); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) return SendClientMessage(playerid, 0xFF0000AA, "Use: /verobjecto [x] [y] [z]"); O[2] = strval(tmp); SetPlayerPos(playerid, O[0], O[1]-3.0, O[2]); // se quiser abestado muda pra SetPlayerPos. return 1; } |