13.11.2014, 17:56
Hey, on my server /skiptut doesn't work and I don't know why it doesnt.
Here is the code:
Here is the code:
Код:
CMD:skiptut(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] < 4) { SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!"); return 1; } if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6) { SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty."); return 1; } new giveplayerid; if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /skiptut [playerid/partofname]"); if(PlayerInfo[giveplayerid][pTut]) return SendClientMessage(playerid, COLOR_GREY, "Player is not in the tutorial."); if(IsPlayerConnected(giveplayerid)) { Tut[giveplayerid] = SetTimerEx("TutFinal", 200, false, "i", giveplayerid); KillTimer(Tut[giveplayerid]); } return 1; }