13.07.2014, 03:35
Quote:
if (!strcmp("/laseron", cmdtext, true)) { SetPVarInt(playerid, "laser", 1); SetPVarInt(playerid, "color", GetPVarInt(playerid, "color")); SendClientMessage(playerid,-1,"[x] Laser {00FF00}ligado."); return 1; } if (!strcmp("/laseroff", cmdtext, true)) { SetPVarInt(playerid, "laser", 0); RemovePlayerAttachedObject(playerid, 0); SendClientMessage(playerid,-1,"[x] Laser {FF0000}desligado."); return 1; } if (!strcmp("/lasercor", cmd, true)) { new tmp[256]; tmp = strtok(cmdtext, idx); if (!strlen(tmp)) { SendClientMessage(playerid, -1, "[x] {FF0000}use: /lasercor [vermelho,azul,rosa,laranja,verde,amarelo]"); return 1; } if (!strcmp(tmp, "vermelho", true)) SetPVarInt(playerid, "color", 18643); else if (!strcmp(tmp, "azul", true)) SetPVarInt(playerid, "color", 19080); else if (!strcmp(tmp, "rosa", true)) SetPVarInt(playerid, "color", 19081); else if (!strcmp(tmp, "laranja", true)) SetPVarInt(playerid, "color", 19082); else if (!strcmp(tmp, "verde", true)) SetPVarInt(playerid, "color", 19083); else if (!strcmp(tmp, "amarelo", true)) SetPVarInt(playerid, "color", 19084); else SendClientMessage(playerid, -1, "[x] {FF0000}Estб cor nгo temos disponivel sу temos vermelho,azul,rosa,laranja,verde e amarelo."); return 1; } |