10.07.2011, 06:22
[ame]http://www.youtube.com/watch?v=yTEIgHrXxW0[/ame]
Hello, i need help with my game mode, /register dont work, scripting is correct ect.. dunno what the problem is.
Hello, i need help with my game mode, /register dont work, scripting is correct ect.. dunno what the problem is.
Код:
dcmd_register(playerid,params[]) { new index = 0; tmps1 = strtok(params, index); GetPlayerName(playerid, playername, sizeof(playername)); if(!strlen(tmps1)) { SendClientMessage(playerid, COLOR_CMD, "* USAGE: /register [password]. This will register your nick. Don't forget your password."); return 1; } if(20 < strlen(tmps1) || strlen(tmps1) < 5) { SendClientMessage(playerid, COLOR_SYSTEM_PW, "* Password length must be 5-20 symbols."); return 1; } else { if (!dini_Exists(udb_encode(playername))) { dini_Create(udb_encode(playername)); dini_IntSet(udb_encode(playername), "password", udb_hash(tmps1)); dini_IntSet(udb_encode(playername), "newplayer", 1); format(strings, sizeof(strings), "%s --- %s (id: %d) created account. Passwordhash: %s.", SystemTime,playername, playerid,udb_hash(tmps1)); printf(strings); format(strings, sizeof(strings), "* Account named %s created! You can login with password %s.", playername, tmps1); SendClientMessage(playerid, COLOR_SYSTEM_PM, strings); if(spawned[playerid]){ GameTextForPlayer(playerid, "~w~ You are not logged in! type /login", 120000, 3); LoginTimeout[playerid]=60; } } else { format(strings, sizeof(strings), "* %s is already registered.", playername,tmps1); SendClientMessage(playerid, COLOR_SYSTEM_PW, strings); } } return 1; } dcmd_setpass(playerid,params[]) { new index = 0; tmps1 = strtok(params, index); GetPlayerName(playerid, playername, sizeof(playername)); if(20 < strlen(tmps1) || strlen(tmps1) < 5) { SendClientMessage(playerid, COLOR_SYSTEM_PW, "* Password length must be 5-20 symbols."); return 1; } if(!strlen(tmps1)) SendClientMessage(playerid, COLOR_CMD, "* USAGE: /setpass [password]. This can change your password."); else { if (dini_Exists(udb_encode(playername))) { if (logged[playerid] == 1) { dini_IntSet(udb_encode(playername), "password", udb_hash(tmps1)); format(strings, sizeof(strings), "--- %s (id: %d) changed his pass to password with hash %s.", playername, playerid,udb_hash(tmps1)); printf(strings); format(strings, sizeof(strings), "* Password changed to %s, remember it.", tmps1); SendClientMessage(playerid, COLOR_SYSTEM_PM, strings); } else SendClientMessage(playerid, COLOR_SYSTEM_PW, "* You must be logged in to change your password."); } else { format(strings, sizeof(strings), "* %s no such account.", playername); SendClientMessage(playerid, COLOR_SYSTEM_PW, strings); } } return 1; } dcmd_login(playerid,params[]) { new index=0; tmps1=strtok(params,index); new balance, CurVal, temp; new m, giveback, propertyID; GetPlayerName(playerid, playername, sizeof(playername)); if(!strlen(tmps1)) { SendClientMessage(playerid, COLOR_CMD, "* USAGE: /login [password]. This will log you into the server and restore your data."); } else { if (dini_Exists(udb_encode(playername))) { if (logged[playerid] == 1) { format(strings, sizeof(strings), "--- %s is already logged in.", playername); printf(strings); SendClientMessage(playerid, COLOR_SYSTEM_PW, "* You are already logged in."); } else { tmps2 = dini_Get(udb_encode(playername), "password"); if (udb_hash(tmps1) != strval(tmps2)) { format(strings, sizeof(strings), "--- %s (id: %d) typed wrong password, Password with hash: %s.", playername, playerid, udb_hash(tmps1)); printf(strings); SendClientMessage(playerid, COLOR_SYSTEM_PW, "* Wrong password."); } else { tmps3 = dini_Get(udb_encode(playername), "banned"); if (strlen(tmps3)){ if (strval(tmps3) == 1) { SendClientMessage(playerid, COLOR_SYSTEM_GW, "* Your name is banned from this server."); format(strings, sizeof(strings),"User has been banned from the server."); BanMsg(playerid, -1, strings); return 1; } } logged[playerid] = 1; SpawnTimeout[playerid] = 0; muted[playerid] = 0; format(strings, sizeof(strings), "%s --- %s (id: %d) logged in. Passwordhash: %s.", SystemTime,playername, playerid, udb_hash(tmps1)); printf(strings); format(strings, sizeof(strings), "~n~~w~Welcome back, %s.~n~You are logged in!", playername); GameTextForPlayer(playerid, strings, 3000, 3); SendClientMessage(playerid, COLOR_SYSTEM_PM, "* You are logged in! Please type /help to get started."); SendClientMessage(playerid, COLOR_SYSTEM_PM, "* Don't kill anyone on or from the ship, or you will be jailed."); SendClientMessage(playerid, COLOR_SYSTEM_PM, "* Killing someone indoors will also be punished by sending you to jail."); SendClientMessage(playerid, COLOR_SYSTEM_PM, "* Read the rules with the command /rules or /rulesnl."); SendClientMessage(playerid, COLOR_SYSTEM_PM, "* Small list of updated items: check /new."); if(spawned[playerid] == 1) { SetPlayerInterior(playerid,0); SetPlayerRandomSpawn(playerid); }
Код:
public OnPlayerSpawn(playerid) { new playercash, temp; GetPlayerName(playerid, playername, sizeof(playername)); if (dini_Exists(udb_encode(playername))) { if(logged[playerid] == 0) { SetPlayerInterior(playerid,12); SetPlayerFacingAngle(playerid, 90); SetCameraBehindPlayer(playerid); SetPlayerPos(playerid, 212.4342,1909.7079,17.6406); spawned[playerid] = 1; GameTextForPlayer(playerid, "~w~ You are not logged in! type /login", 120000, 3); SendClientMessage(playerid, COLOR_GREENYELLOW, "* You are not logged in. Type /login <password> to login."); SendClientMessage(playerid, COLOR_GREENYELLOW, "* Note that you will receive your spawn weapons at your next spawn (next time you have died)."); LoginTimeout[playerid]=60; return 1; } } else { SetPlayerInterior(playerid,3); SetPlayerFacingAngle(playerid, 90); SetCameraBehindPlayer(playerid); SetPlayerPos(playerid, 212.4342,1909.7079,17.6406); spawned[playerid] = 1; GameTextForPlayer(playerid, "~w~ You require an account! type /register", 120000, 3); SendClientMessage(playerid, COLOR_SYSTEM_PM, "* Before you can play, you need to register. You can type /register <your password>."); SendClientMessage(playerid, COLOR_SYSTEM_PM, "* After successful registration, identify yourself using /login <your password>."); SendClientMessage(playerid, COLOR_SYSTEM_PM, "* This server saves your progress(money, frags, etc)."); LoginTimeout[playerid]=60; return 1; } SetPlayerInterior(playerid,0); SetPlayerRandomSpawn(playerid); spawned[playerid] = 1; tmps1 = dini_Get(FILE_SETTINGS, "spawnweapons"); if (strval(tmps1) == 1) { tmps1 = dini_Get(udb_encode(playername), "weapon1"); if (strval(tmps1) != 0){ GivePlayerWeapon(playerid, strval(tmps1), 1); melee[playerid] = strval(tmps1); } tmps1 = dini_Get(udb_encode(playername), "weapon3"); tmps2 = dini_Get(udb_encode(playername), "ammo3"); if (strval(tmps1) != 0 && strval(tmps2) != 0){ GivePlayerWeapon(playerid, strval(tmps1), strval(tmps2)); shotgun[playerid] = strval(tmps1); shotgunammo[playerid] = strval(tmps2); } tmps1 = dini_Get(udb_encode(playername), "weapon4"); tmps2 = dini_Get(udb_encode(playername), "ammo4"); if (strval(tmps1) != 0 && strval(tmps2) != 0){ GivePlayerWeapon(playerid, strval(tmps1), strval(tmps2)); smg[playerid] = strval(tmps1); smgammo[playerid] = strval(tmps2); } tmps1 = dini_Get(udb_encode(playername), "weapon5"); tmps2 = dini_Get(udb_encode(playername), "ammo5"); if (strval(tmps1) != 0 && strval(tmps2) != 0){ GivePlayerWeapon(playerid, strval(tmps1), strval(tmps2)); rifle[playerid] = strval(tmps1); rifleammo[playerid] = strval(tmps2); } tmps1 = dini_Get(udb_encode(playername), "weapon6"); if (strval(tmps1) != 0){ GivePlayerWeapon(playerid, strval(tmps1), 1); gift[playerid] = strval(tmps1); } tmps1 = dini_Get(udb_encode(playername), "weapon2"); tmps2 = dini_Get(udb_encode(playername), "ammo2"); if (strval(tmps1) != 0 && strval(tmps2) != 0){ GivePlayerWeapon(playerid, strval(tmps1), strval(tmps2)); pistol[playerid] = strval(tmps1); pistolammo[playerid] = strval(tmps2); } } if (jailed[playerid] == 1) { SetPlayerInterior(playerid,10); SetPlayerPos(playerid,jailcelloc[jailcelcounter][0],jailcelloc[jailcelcounter][1],jailcelloc[jailcelcounter][2]); if(jailcelcounter < 3) { jailcelcounter++; } else { jailcelcounter=0; } format(strings, sizeof(strings), "--- %s spawned as prisoner.", playername); printf(strings); SendClientMessage(playerid, COLOR_SYSTEM_PM , "* Your prisoner status is restored."); } tmps1 = dini_Get(udb_encode(playername), "speedometer"); if (strval(tmps1) != 0) speedometer[playerid] = 1; if (GetPlayerMoney(playerid) <= 0) { // TO-DO money scanner update format(moneyreason, sizeof(moneyreason), "* Money increased by $%d (old: $%d), because player-id %d got spawn pocketmoney.", PocketMoney-GetPlayerMoney(playerid), GetPlayerMoney(playerid), playerid); StatGivePlayerMoney(playerid, PocketMoney-GetPlayerMoney(playerid), moneyreason); } if (FirstSpawn[playerid] == 1 ) { if(OwnPlayerColorChosen[playerid] == 0){ SetPlayerColor(playerid, playerColors[playerid]); } else { temp=PlayerColorsChoice[OwnPlayerColor[playerid]]; SetPlayerColor(playerid, temp); } LoginTimeout[playerid]=0; SpawnTimeout[playerid] = 15; FirstSpawn[playerid] = 0; if (!IsAdmin(playerid)){ SendClientMessage(playerid, COLOR_RED,"* New on this server? Check out /rules or /rulesnl for the applied rules for this server."); SendClientMessage(playerid, COLOR_RED,"* For some hints and tips type /tip or /tipnl. Enjoy your time on this server!"); FirstSpawn[playerid] = 0; } } else { if(NoReset[playerid]==0){ playercash=GetPlayerMoney(playerid); if(playercash > 600){ playercash=playercash-600; format(moneyreason, sizeof(moneyreason), "* Money set to $500 (old: $%d), because player-id %d died.", GetPlayerMoney(playerid), playerid); StatGivePlayerMoney(playerid, -playercash, moneyreason); SendClientMessage(playerid,COLOR_SYSTEM_PW, "* Your cash has been resetted to $500."); } } NoReset[playerid]=0; } SpawnedPlayer[playerid]=1; DisarmedPlayer[playerid] = 0; Killed[playerid] = 0; return 1; }
Код:
public OnPlayerConnect(playerid) { OwnPlayerColor[playerid] = 999; spawned[playerid] = 0; SetPlayerColor(playerid, playerColors[playerid]); ResetPlayerArrays(playerid); format(strings, sizeof(strings), "~r~Welcome to the ~n~~w~Nitro Freeroam RPG ~n~~b~version %s~n~~p~new: /payout and /nopayout", ScriptVersion); GameTextForPlayer(playerid, strings,10000,3); SendClientMessage(playerid, COLOR_SYSTEM_PM, "* Welcome to Nitro's Freeroam RPG. In this gamemode, you can earn money or just roam around."); SendClientMessage(playerid, COLOR_SYSTEM_PM, "* This server is based on Freeroam v2.3 with modifications made by Nitro."); SendClientMessage(playerid, COLOR_SYSTEM_PM, "* Use the command /new to view the recent changes, use /help to get started."); playerCheckpoint[playerid] = 999; GetPlayerName(playerid, playername, sizeof(playername)); format(strings, sizeof(strings), "Player %s connected at %s", playername, SystemTime); printf(strings); muted[playerid] = 1; if (dini_Exists(udb_encode(playername))) { SendClientMessage(playerid, COLOR_SYSTEM_PW, "* This nick is registered! If you are the owner, log in using the /login command."); SendClientMessage(playerid, COLOR_SYSTEM_PW, "* If you are not the owner, choose a different nick."); } else { SendClientMessage(playerid, COLOR_SYSTEM_PM, "* Before you can play, you need to register. You can type /register <your password>."); SendClientMessage(playerid, COLOR_SYSTEM_PM, "* After successful registration, identify yourself using /login <your password>."); SendClientMessage(playerid, COLOR_SYSTEM_PM, "* This server saves your progress(money, frags, etc)."); } payment[playerid] = 0; query[playerid] = 255; admindived[playerid] = 0; FirstSpawn[playerid] = 1; SpyPlayer[playerid]=0; return 1; } forward OnPlayerDisconnect(playerid); public OnPlayerDisconnect(playerid) { if(SpyPlayer[playerid]==1) { SpyPlayer[playerid]=0; KillTimer(SpyTimer[playerid]); TogglePlayerControllable(playerid,1); } for(new l=0; l<MAX_PLAYERS; l++){ IgnorePlayerlist[l][playerid] = 0; } if (SaveFile(playerid) == 1) { ResetPlayerArrays(playerid); } else printf("Saving and resetting player-array failed!"); return 1; } forward OnPlayerCommandText(playerid, cmdtext[]); public OnPlayerCommandText(playerid, cmdtext[]) { if(!IsPlayerConnected(playerid)){ return 0; } if((cmdtext[0] == '/') && strlen(cmdtext) > 1) { new character[256]; new i, j; new found = 0; new foundchar[256]; for(i=1; i<(strlen(cmdtext)); i++) { //next character strmid(character, cmdtext, i, i+1, 2); for(j = 0; j<MAX_ALLOWED_CHARS; j++) { tmps1 = allowedchars[j]; if(strcmp(hash(character), hash(tmps1), false) == 0) { found = 1; foundchar = tmps1; } } if(found == 1) { found = 0; } else return SendClientMessage(playerid, COLOR_SYSTEM_PW,"Illegal character(s) used. Use [0-1], [a-z], [A-Z] or [!@#$%^&*()-[];:,.<>?/]"); } } if(commandlogenabled == 1) { new text[256]; new hour, minutes, seconds; GetPlayerName(playerid, playername, sizeof(sendername)); if(strlen(cmdtext) > 1) { strmid(text, cmdtext, 0, strlen(cmdtext)); gettime(hour, minutes, seconds); format(strings,sizeof(strings),"(%d:%d) %s", hour, minutes, text); if (!dini_Exists(FILE_COMMANDLOG)) { dini_Create(FILE_COMMANDLOG); } dini_Set(FILE_COMMANDLOG, playername, strings); format(strings, sizeof(strings), "%s * %s (id: %d) issues command: %s", SystemTime, playername, playerid, text); printf(strings); } } if(logged[playerid] == 0){ dcmd(help,4,cmdtext); dcmd(register,8,cmdtext); dcmd(login,5,cmdtext); dcmd(accounthelp,11,cmdtext); return SendClientMessage(playerid,COLOR_MENU,"* You need to login before other commands are available. Check /accounthelp for the available commands."); } if(logged[playerid] == 1 && spawned[playerid] == 0){ return SendClientMessage(playerid,COLOR_MENU,"* You need to spawn before other commands are available."); } if(logged[playerid] == 1 && spawned[playerid] == 1){ dcmd(register,8,cmdtext); dcmd(login,5,cmdtext); dcmd(help,4,cmdtext); dcmd(accounthelp,11,cmdtext); dcmd(setpass,7,cmdtext); dcmd(carhelp,7,cmdtext); dcmd(tunerhelp,9,cmdtext); dcmd(chathelp,8,cmdtext); dcmd(spawnhelp,9,cmdtext); dcmd(moneyhelp,9,cmdtext); dcmd(stealhelp,9,cmdtext); dcmd(weaponhelp,10,cmdtext); dcmd(jobhelp,7,cmdtext); dcmd(funhelp,7,cmdtext); dcmd(funhelp2,8,cmdtext); dcmd(bountyhelp,10,cmdtext); dcmd(otherhelp,9,cmdtext); dcmd(propertyhelp,12,cmdtext); dcmd(deathmatch,10,cmdtext); dcmd(races,5,cmdtext); dcmd(races2,6,cmdtext); dcmd(races3,6,cmdtext); dcmd(races4,6,cmdtext); dcmd(races5,6,cmdtext); dcmd(rules,5,cmdtext); dcmd(rulesnl,7,cmdtext); dcmd(gamble,6,cmdtext); dcmd(lock,4,cmdtext); dcmd(close,5,cmdtext); dcmd(unlock,6,cmdtext); dcmd(open,4,cmdtext); dcmd(bank,4,cmdtext); dcmd(bankall,7,cmdtext); dcmd(withdraw,8,cmdtext); dcmd(transfer,8,cmdtext); dcmd(balance,7,cmdtext); dcmd(givecash,8,cmdtext); dcmd(hitman,6,cmdtext); dcmd(bounty,6,cmdtext); dcmd(buy,3,cmdtext); dcmd(creditbuy,9,cmdtext); dcmd(sell,4,cmdtext); dcmd(flog,4,cmdtext); dcmd(buyautolock,11,cmdtext); dcmd(creditautolock,14,cmdtext); dcmd(sellautolock,12,cmdtext); dcmd(buyfuelcan,10,cmdtext); dcmd(creditfuelcan,13,cmdtext); dcmd(sellfuelcan,11,cmdtext); dcmd(fillupcan,9,cmdtext); dcmd(property,8,cmdtext); dcmd(properties,10,cmdtext); dcmd(lsprop1,7,cmdtext); dcmd(lsprop2,7,cmdtext); dcmd(lsprop3,7,cmdtext); dcmd(blprop1,7,cmdtext); dcmd(blprop2,7,cmdtext); dcmd(sfprop1,7,cmdtext); dcmd(sfprop2,7,cmdtext); dcmd(deprop1,7,cmdtext); dcmd(deprop2,7,cmdtext); dcmd(deprop3,7,cmdtext); dcmd(lvprop1,7,cmdtext); dcmd(lvprop2,7,cmdtext); dcmd(lvprop3,7,cmdtext); dcmd(roprop1,7,cmdtext); dcmd(bwmelee,7,cmdtext); dcmd(bwpistol,8,cmdtext); dcmd(bwshotgun,9,cmdtext); dcmd(bwsmg,5,cmdtext); dcmd(bwrifle,7,cmdtext); dcmd(bwgift,6,cmdtext); dcmd(weaplist,8,cmdtext); dcmd(giftlist,8,cmdtext); dcmd(skydive,7,cmdtext); dcmd(slap,4,cmdtext); dcmd(para,4,cmdtext); dcmd(me,2,cmdtext); dcmd(query,5,cmdtext); dcmd(setpay,6,cmdtext); dcmd(getpay,6,cmdtext); dcmd(stat,4,cmdtext); dcmd(sv,2,cmdtext); dcmd(myproperties,12,cmdtext); dcmd(taxi,4,cmdtext); dcmd(credittaxi,10,cmdtext); dcmd(taxilocs,8,cmdtext); dcmd(new,3,cmdtext); dcmd(hackthebank,11,cmdtext); dcmd(hacklist,8,cmdtext); dcmd(hackpass,8,cmdtext); dcmd(springbreak,11,cmdtext); dcmd(springlist,10,cmdtext); dcmd(springpass,10,cmdtext); dcmd(hackthebankhelp,15,cmdtext); dcmd(springbreakhelp,15,cmdtext); dcmd(taxirates,9,cmdtext); dcmd(speedo,6,cmdtext); dcmd(clearchat,9,cmdtext); dcmd(callmedic,9,cmdtext); dcmd(eaglematch,10,cmdtext); dcmd(chainmatch,10,cmdtext); dcmd(minimatch,9,cmdtext); dcmd(uzimatch,8,cmdtext); dcmd(rusroulette,11,cmdtext); dcmd(dragrace1,9,cmdtext); dcmd(dragrace2,9,cmdtext); dcmd(dragrace3,9,cmdtext); dcmd(dragrace4,9,cmdtext); dcmd(dragrace5,9,cmdtext); dcmd(dragrace6,9,cmdtext); dcmd(dragrace7,9,cmdtext); dcmd(dragrace8,9,cmdtext); dcmd(dragrace9,9,cmdtext); dcmd(sprintrace1,11,cmdtext); dcmd(sprintrace2,11,cmdtext); dcmd(buyspeedo,9,cmdtext); dcmd(speedooff,9,cmdtext); dcmd(speedoon,8,cmdtext); dcmd(sellspeedo,10,cmdtext); dcmd(flip,4,cmdtext); dcmd(clue,4,cmdtext); dcmd(kickpassenger,13,cmdtext); dcmd(payandspray,11,cmdtext); dcmd(lowtuner,8,cmdtext); dcmd(streettuner,11,cmdtext); dcmd(backtolv,8,cmdtext); dcmd(cancelback,10,cmdtext); dcmd(canceltuner,11,cmdtext); dcmd(grouptalk,9,cmdtext); dcmd(groupinvite,11,cmdtext); dcmd(groupaccept,11,cmdtext); dcmd(groupdeny,9,cmdtext); dcmd(grouplist,9,cmdtext); dcmd(groupleave,10,cmdtext); dcmd(grouphelp,9,cmdtext); dcmd(report,6,cmdtext); dcmd(fillup,6,cmdtext); dcmd(fillstop,8,cmdtext); dcmd(gaslocs,7,cmdtext); dcmd(fuelmeteron,11,cmdtext); dcmd(fuelmeteroff,12,cmdtext); dcmd(spawnmethere,12,cmdtext); dcmd(spawnlocoff,11,cmdtext); dcmd(spawnlocs,9,cmdtext); dcmd(spawnview,9,cmdtext); dcmd(medic,5,cmdtext); dcmd(medicoff,8,cmdtext); dcmd(test,4,cmdtext); dcmd(tip,3,cmdtext); dcmd(tipnl,5,cmdtext); dcmd(resetdm,7,cmdtext); dcmd(cardive,7,cmdtext); dcmd(pcd,3,cmdtext); dcmd(viewtank,8,cmdtext); dcmd(patrol,6,cmdtext); dcmd(stoppatrol,10,cmdtext); dcmd(liftme,6,cmdtext); dcmd(pizza,5,cmdtext); dcmd(pizzastop,9,cmdtext); dcmd(pizzaboard,10,cmdtext); dcmd(helperhelp,10,cmdtext); dcmd(introduce,9,cmdtext); dcmd(whoneedshelp,12,cmdtext); dcmd(taxidriver,10,cmdtext); dcmd(notaxidriver,12,cmdtext); dcmd(taxistop,8,cmdtext); dcmd(taxiboard,9,cmdtext); dcmd(sprintrace3,11,cmdtext); dcmd(sprintrace4,11,cmdtext); dcmd(sprintrace5,11,cmdtext); dcmd(sprintrace6,11,cmdtext); dcmd(sprintrace7,11,cmdtext); dcmd(motorrace1,10,cmdtext); dcmd(motorrace2,10,cmdtext); dcmd(motorrace3,10,cmdtext); dcmd(motorrace4,10,cmdtext); dcmd(motorrace5,10,cmdtext); dcmd(cancelrace,10,cmdtext); dcmd(ignore,6,cmdtext); dcmd(ignorelist,10,cmdtext); dcmd(unignore,8,cmdtext); dcmd(visit,5,cmdtext); dcmd(leave,5,cmdtext); dcmd(hudcolor,8,cmdtext); dcmd(colors,6,cmdtext); dcmd(colors1,7,cmdtext); dcmd(colors2,7,cmdtext); dcmd(colors3,7,cmdtext); dcmd(colors4,7,cmdtext); dcmd(colors5,7,cmdtext); dcmd(colors6,7,cmdtext); dcmd(colors7,7,cmdtext); dcmd(colors8,7,cmdtext); dcmd(owncolor,8,cmdtext); dcmd(removeowncolor,14,cmdtext); dcmd(payout,6,cmdtext); dcmd(nopayout,8,cmdtext); if(IsAdmin(playerid)){ dcmd(adminhelp,9,cmdtext); dcmd(adminhelp2,10,cmdtext); dcmd(shortcuts,9,cmdtext); dcmd(sk,2,cmdtext); dcmd(giveweaplist,12,cmdtext); dcmd(goto,4,cmdtext); dcmd(get,3,cmdtext); dcmd(jaillist,8,cmdtext); dcmd(announce,8,cmdtext); dcmd(ann,3,cmdtext); dcmd(countdown,9,cmdtext); dcmd(cd,2,cmdtext); dcmd(stopcountdown,13,cmdtext); dcmd(stopcd,6,cmdtext); dcmd(admindive,9,cmdtext); dcmd(getprop,7,cmdtext); dcmd(giveloc,7,cmdtext); dcmd(jail,4,cmdtext); dcmd(j,1,cmdtext); dcmd(unjail,6,cmdtext); dcmd(unj,3,cmdtext); dcmd(mute,4,cmdtext); dcmd(unmute,6,cmdtext); dcmd(heal,4,cmdtext); dcmd(h,1,cmdtext); dcmd(god,3,cmdtext); dcmd(murder,6,cmdtext); dcmd(freeze,6,cmdtext); dcmd(f,1,cmdtext); dcmd(unfreeze,8,cmdtext); dcmd(unf,3,cmdtext); dcmd(givemoney,9,cmdtext); dcmd(gm,2,cmdtext); dcmd(giveweapon,10,cmdtext); dcmd(gw,2,cmdtext); dcmd(disarm,6,cmdtext); dcmd(saveloc,7,cmdtext); dcmd(tp,2,cmdtext); dcmd(cartp,5,cmdtext); dcmd(cargoto,7,cmdtext); dcmd(tpto,4,cmdtext); dcmd(deluser,7,cmdtext); dcmd(setmoney,8,cmdtext); dcmd(setbank,7,cmdtext); dcmd(removeadmin,11,cmdtext); dcmd(radmin,6,cmdtext); dcmd(setadmin,8,cmdtext); dcmd(sadmin,6,cmdtext); dcmd(setlevel,8,cmdtext); dcmd(getlevel,8,cmdtext); dcmd(admins,6,cmdtext); dcmd(ad,2,cmdtext); dcmd(hideout,7,cmdtext); dcmd(hid,3,cmdtext); dcmd(stadium,7,cmdtext); dcmd(sex,3,cmdtext); dcmd(villa,5,cmdtext); dcmd(kick,4,cmdtext); dcmd(k,1,cmdtext); dcmd(ban,3,cmdtext); dcmd(b,1,cmdtext); dcmd(pmspyon,7,cmdtext); dcmd(pmspyoff,8,cmdtext); dcmd(pmspyoffall,8,cmdtext); dcmd(chatoff,7,cmdtext); dcmd(chaton,6,cmdtext); dcmd(setdawn,7,cmdtext); dcmd(setnoon,7,cmdtext); dcmd(setdusk,7,cmdtext); dcmd(setnight,8,cmdtext); dcmd(settime,7,cmdtext); dcmd(protect,7,cmdtext); dcmd(p,1,cmdtext); dcmd(setprot,7,cmdtext); dcmd(svall,5,cmdtext); dcmd(getuser,7,cmdtext); dcmd(whois,5,cmdtext); dcmd(20,2,cmdtext); dcmd(30,2,cmdtext); dcmd(40,2,cmdtext); dcmd(invisible,9,cmdtext); dcmd(invis,5,cmdtext); dcmd(noadinvis,9,cmdtext); dcmd(visible,7,cmdtext); dcmd(vis,3,cmdtext); dcmd(iamnoadmin,10,cmdtext); dcmd(noad,4,cmdtext); dcmd(iamadmin,8,cmdtext); dcmd(iad,3,cmdtext); dcmd(givespeedo,10,cmdtext); dcmd(spyon,5,cmdtext); dcmd(spyoff,6,cmdtext); dcmd(spystaton,9,cmdtext); dcmd(spystatoff,10,cmdtext); dcmd(ssn,3,cmdtext); dcmd(ssf,3,cmdtext); dcmd(adminspawn,10,cmdtext); dcmd(regular,7,cmdtext); dcmd(notregular,10,cmdtext); dcmd(veid,4,cmdtext); dcmd(givetime,8,cmdtext); dcmd(locs,4,cmdtext); dcmd(resetalldrags,13,cmdtext); dcmd(resetdrag1,10,cmdtext); dcmd(resetdrag2,10,cmdtext); dcmd(resetdrag3,10,cmdtext); dcmd(resetdrag4,10,cmdtext); dcmd(resetdrag5,10,cmdtext); dcmd(resetdrag6,10,cmdtext); dcmd(resetdrag7,10,cmdtext); dcmd(resetdrag8,10,cmdtext); dcmd(resetdrag9,10,cmdtext); dcmd(resetsprint1,12,cmdtext); dcmd(resetsprint2,12,cmdtext); dcmd(setbounty,9,cmdtext); dcmd(uptime,6,cmdtext); dcmd(url,3,cmdtext); dcmd(helper,6,cmdtext); dcmd(nohelper,8,cmdtext); dcmd(unban,5,cmdtext); dcmd(disablepatrol,13,cmdtext); dcmd(enablepatrol,12,cmdtext); dcmd(lvplaytime,10,cmdtext); } } if(ErrorCounter < 33) { ErrorCounter++; } else { ErrorCounter = 0; } return SendClientMessage(playerid,COLOR_MENU,ErrorMessages[ErrorCounter]); }