20.02.2010, 16:04
Hey all,
I have a question.
At our server we have an automatic DM mission but we dont like it so many times we just turn it off. (an admin does /deathmatch 0)
Isnt it possible to automaticly turn the DM off?
The code from /deathmatch is:
Someone please help me.
SancheZ
I have a question.
At our server we have an automatic DM mission but we dont like it so many times we just turn it off. (an admin does /deathmatch 0)
Isnt it possible to automaticly turn the DM off?
The code from /deathmatch is:
Код:
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!"); }
SancheZ