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!");
}
new deathmatch = 0;
|
Originally Posted by DiMeNsIoN©
Just put this at the top of your script:
pawn Код:
|
|
Originally Posted by [ECR
SancheZ ]
Thanks men ![]() |