//<-----------------------------[streetrace]----------------------------------------------------------------------- if (strcmp(cmd, "/streetrace", true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /streetrace [0-1] This mission on 1 off 0"); format(string, sizeof(string), "cb:%d sr:%d hw:%d dm:%d", cashbox,streetrace,hotwire,deathmatch); SendClientMessage(playerid, COLOR_GRAD1, string); return 1; } new weaponid = strval(tmp); if ((IsPlayerAdmin(playerid)) || PlayerInfo[playerid][pAdmin] >= 3) { streetrace=weaponid; format(string, sizeof(string), "cb:%d sr:%d hw:%d dm:%d", cashbox,streetrace,hotwire,deathmatch); SendClientMessage(playerid, COLOR_GRAD1, string); } else { SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!"); } return 1; } //<-----------------------------[hotwire]----------------------------------------------------------------------- if (strcmp(cmd, "/hotwire", true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /hotwire [0-1] This mission on 1 off 0"); format(string, sizeof(string), "cb:%d sr:%d hw:%d dm:%d", cashbox,streetrace,hotwire,deathmatch); SendClientMessage(playerid, COLOR_GRAD1, string); return 1; } new weaponid = strval(tmp); if ((IsPlayerAdmin(playerid)) || PlayerInfo[playerid][pAdmin] >= 3) { hotwire=weaponid; format(string, sizeof(string), "cb:%d sr:%d hw:%d dm:%d", cashbox,streetrace,hotwire,deathmatch); SendClientMessage(playerid, COLOR_GRAD1, string); } else { SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!"); } return 1; } if (strcmp(cmd, "/deathmatch", true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /deathmatch [0-1] This mission on 1 off 0"); format(string, sizeof(string), "cb:%d sr:%d hw:%d dm:%d", cashbox,streetrace,hotwire,deathmatch); SendClientMessage(playerid, COLOR_GRAD1, string); return 1; } new weaponid = strval(tmp); if ((IsPlayerAdmin(playerid)) || PlayerInfo[playerid][pAdmin] >= 3) { deathmatch=weaponid; format(string, sizeof(string), "cb:%d sr:%d hw:%d dm:%d", cashbox,streetrace,hotwire,deathmatch); SendClientMessage(playerid, COLOR_GRAD1, string); } else { SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!"); } return 1; }