28.11.2009, 03:59
Do any of you guys see any errors i made dis command so when they are in tutorials they can skip it so when i do /skip it syas unknown command heres my command
please help me thanks
Код:
if(strcmp(cmd, "/skip", true) == 0) { if(IsPlayerConnected(playerid)) { for(new i; i <= GetMaxPlayers(); i++) { if(TutTime[i] == 127) { ClearChatbox(i, 10); SendClientMessage(i, COLOR_YELLOW2, "Welcome to the Los Santos."); SendClientMessage(i, COLOR_YELLOW2, "You should read Los Santos newspaper in order to get GPS system available.(It's Marked On Your Map)"); SendClientMessage(i, COLOR_GRAD1, "Hint: To call a taxi or bus use /call 444 or /call 222"); SendClientMessage(i, COLOR_GRAD1, "Hint: To change your outfit you have to go to clothes shop"); TutTime[i] = 0; PlayerInfo[i][pTut] = 1; SetPlayerPos(i, 330.6825,163.6688,1014.1875); gOoc[i] = 0; gNews[i] = 0; gFam[i] = 0; TogglePlayerControllable(i, 1); MedicBill[i] = 0; AfterTutorial[i] = 1; SetTimerEx("UnsetAfterTutorial", 2500, false, "i", i); SetTimerEx("UnsetFirstSpawn", 5000, false, "i", i); SetPlayerSpawn(i); SetPlayerCheckpoint(i,1505.2416,-1694.5597,14.0469,5.0); } } } return 1; }