29.12.2013, 20:52
Hey guys, I need help. I making a GameMode, and I created a dialogue for place of birth. When I finished that, I turned on samp-server, and when I got InGame, samp crashed becouse of mods. Ok, I got InGame second time, and I waited for a register dialogue, and i just saw spawn button. I clicked on that, and server crashed. Here's place of birth dialogue, if you can see what's wrong. By the way, sorry for my bad English.
EDIT: Oh, I forgot. I created Accent "system", here's code for that:
Код:
if(dialogid == 156) { if(response) { PlayerInfo[playerid][pAge] = strval(inputtext); new string[64]; format(string, sizeof(string),"Izabrali ste da vaљ karakter ima %s godina.", inputtext); SendClientMessage(playerid, COLOR_YELLOW2, string); new sexthings[256]; strcat(sexthings,"California (( Los Angeles, San Francisco, San Diego etc. ))\n"); strcat(sexthings,"Nevada (( Las Vegas, Henderson, Carson City etc. ))\n"); strcat(sexthings,"Texas (( Houston, Dallas, San Antonio ))\n"); strcat(sexthings,"Engleska (( London, Birmingham, Leeds etc. ))\n"); strcat(sexthings,"Italija (( Rim, Milan, Napulj etc. ))\n"); strcat(sexthings,"Љpanija (( Madrid, Barcelona, Valencia etc. ))\n"); strcat(sexthings,"Rusija (( Moskva, Sankt Petersburg, Novosibirsk etc. ))\n"); strcat(sexthings,"Kina (( Shangai, Peking, Wuhan etc. ))\n"); strcat(sexthings,"Japan (( Tokio, Jokohama, Osaka etc. ))\n"); strcat(sexthings,"Egipat (( Kairo, Aleksandrija, Giza etc. ))\n"); strcat(sexthings,"Tunis (( Tunis, Sfex, Ariana etc. ))\n"); strcat(sexthings,"Alћir (( Alћir, Oran, Kusantina etc. ))"); if(strval(inputtext) <= 15) { SendClientMessage(playerid, COLOR_WHITE, "Los Angeles: Vaљ karakter ne smije imati manje od 18 godina."); Kick(playerid); return 1; } if(strval(inputtext) >= 60) { SendClientMessage(playerid, COLOR_WHITE, "Los Angeles: Vaљ karakter ne smije imati viљe od 60 godina."); ShowPlayerDialog(playerid,156,DIALOG_STYLE_INPUT,"Godine","Izaberite koliko ћelite da vaљ\nkarakter ima godina. Napomena:\nvaљ karakter ne smije biti\nmlađi od 15, ili stariji od\n60 godina.","Dalje","Izađi"); return 1; } ShowPlayerDialog(playerid,157,DIALOG_STYLE_LIST,"Odaberite mjesto odakle ћelite da vaљ karakter bude", sexthings, "Select","Leave Game"); } else { Kick(playerid); } } if(dialogid == 157) { if(response) { if (listitem == 0) { PlayerInfo[playerid][pPlace] = 1; SendClientMessage(playerid, COLOR_YELLOW2, "Kao mjesto rođenja vaљeg lika izabrali ste saveznu drћavu Californiu. Sada moћete RPati da je vaљ lik iz sljedećih gradova:"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Los Angeles"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}San Franciso"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}San Diego"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}San Jose"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Fresno"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Long Beach"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Sacramento"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Oakland"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Santa Ana"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Anaheim"); SendClientMessage(playerid, COLOR_YELLOW2, "Viљe o Californiji moћete naći na sljedećim stranicama:"); SendClientMessage(playerid, COLOR_YELLOW2, "en.wikipedia.org/wiki/California - Wikipedia(Engleska verzija)"); SendClientMessage(playerid, COLOR_YELLOW2, "hr.wikipedia.org/wiki/Kalifornija - Wikipedia(Hrvatska verzija)"); gPlayerRegStep[playerid] = 0; PlayerInfo[playerid][pSelected] = 1; PlayerInfo[playerid][pNaglasak] = 1; } else if (listitem == 1) { PlayerInfo[playerid][pPlace] = 2; SendClientMessage(playerid, COLOR_YELLOW2, "Kao mjesto rođenja vaљeg lika izabrali ste saveznu drћavu Nevadu. Sada moћete RPati da je vaљ lik iz sljedećih gradova:"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Las Vegas"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Elko"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Reno"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Sunrise Manor"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Paradise"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Spring Valley"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Enterprise"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Sparks"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Carson City"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Henderson"); SendClientMessage(playerid, COLOR_YELLOW2, "Viљe o Nevadi moћete naći na sljedećim stranicama:"); SendClientMessage(playerid, COLOR_YELLOW2, "en.wikipedia.org/wiki/Nevada - Wikipedia(Engleska verzija)"); SendClientMessage(playerid, COLOR_YELLOW2, "hr.wikipedia.org/wiki/Nevada - Wikipedia(Hrvatska verzija)"); gPlayerRegStep[playerid] = 0; PlayerInfo[playerid][pSelected] = 1; PlayerInfo[playerid][pNaglasak] = 2; } else if (listitem == 2) { PlayerInfo[playerid][pPlace] = 3; SendClientMessage(playerid, COLOR_YELLOW2, "Kao mjesto rođenja vaљeg lika izabrali ste saveznu drћavu Texas. Sada moћete RPati da je vaљ lik iz sljedećih gradova:"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Houston"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}San Antonio"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Dallas"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Austin"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Fort Worth"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}El Paso"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Arlington"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Corpus Christi"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Plano"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Laredo"); SendClientMessage(playerid, COLOR_YELLOW2, "Viљe o Texasu moћete naći na sljedećim stranicama:"); SendClientMessage(playerid, COLOR_YELLOW2, "en.wikipedia.org/wiki/Texas - Wikipedia(Engleska verzija)"); SendClientMessage(playerid, COLOR_YELLOW2, "hr.wikipedia.org/wiki/Texas - Wikipedia(Hrvatska verzija)"); gPlayerRegStep[playerid] = 0; PlayerInfo[playerid][pSelected] = 1; PlayerInfo[playerid][pNaglasak] = 3; } else if (listitem == 3) { PlayerInfo[playerid][pPlace] = 3; SendClientMessage(playerid, COLOR_YELLOW2, "Kao mjesto rođenja vaљeg lika izabrali ste Englesku. Sada moћete RPati da je vaљ lik iz sljedećih gradova:"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}London"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Birmingham"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Leeds"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Sheffield"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Bradford"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Liverpool"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Manchester"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Bristol"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Doncaster"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Sunderland"); SendClientMessage(playerid, COLOR_YELLOW2, "Viљe o Engleskoj moћete naći na sljedećim stranicama:"); SendClientMessage(playerid, COLOR_YELLOW2, "en.wikipedia.org/wiki/England - Wikipedia(Engleska verzija)"); SendClientMessage(playerid, COLOR_YELLOW2, "hr.wikipedia.org/wiki/Engleska - Wikipedia(Hrvatska verzija)"); gPlayerRegStep[playerid] = 0; PlayerInfo[playerid][pSelected] = 1; PlayerInfo[playerid][pNaglasak] = 4; } else if (listitem == 4) { PlayerInfo[playerid][pPlace] = 5; SendClientMessage(playerid, COLOR_YELLOW2, "Kao mjesto rođenja vaљeg lika izabrali ste Italiju. Sada moћete RPati da je vaљ lik iz sljedećih gradova:"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Rim"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Milan"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Napulj"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Torino"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Palermo"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Genova"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Bologna"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Firenca"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Bari"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Venecija"); SendClientMessage(playerid, COLOR_YELLOW2, "Viљe o Italiji moћete naći na sljedećim stranicama:"); SendClientMessage(playerid, COLOR_YELLOW2, "en.wikipedia.org/wiki/Italy - Wikipedia(Engleska verzija)"); SendClientMessage(playerid, COLOR_YELLOW2, "hr.wikipedia.org/wiki/Italija - Wikipedia(Hrvatska verzija)"); gPlayerRegStep[playerid] = 0; PlayerInfo[playerid][pSelected] = 1; PlayerInfo[playerid][pNaglasak] = 5; } else if (listitem == 5) { PlayerInfo[playerid][pPlace] = 5; SendClientMessage(playerid, COLOR_YELLOW2, "Kao mjesto rođenja vaљeg lika izabrali ste Љpaniju. Sada moћete RPati da je vaљ lik iz sljedećih gradova:"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Madrid"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Barcelona"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Valencia"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Sevilla"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Zaragoza"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Mбlaga"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Murcia"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Bilbao"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Vigo"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Granada"); SendClientMessage(playerid, COLOR_YELLOW2, "Viљe o Љpaniji moћete naći na sljedećim stranicama:"); SendClientMessage(playerid, COLOR_YELLOW2, "en.wikipedia.org/wiki/Spain - Wikipedia(Engleska verzija)"); SendClientMessage(playerid, COLOR_YELLOW2, "hr.wikipedia.org/wiki/Љpanija - Wikipedia(Hrvatska verzija)"); gPlayerRegStep[playerid] = 0; PlayerInfo[playerid][pSelected] = 1; PlayerInfo[playerid][pNaglasak] = 6; } else if (listitem == 6) { PlayerInfo[playerid][pPlace] = 4; SendClientMessage(playerid, COLOR_YELLOW2, "Kao mjesto rođenja vaљeg lika izabrali ste Rusiju. Sada moћete RPati da je vaљ lik iz sljedećih gradova:"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Moskva"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Sankt Petersburg"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Novosibirsk"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Yekaterinburg"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Nizhny Novgorod"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Samara"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Kazan"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Omsk"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Chelyabinsk"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Rostov"); SendClientMessage(playerid, COLOR_YELLOW2, "Viљe o Rusiji moћete naći na sljedećim stranicama:"); SendClientMessage(playerid, COLOR_YELLOW2, "en.wikipedia.org/wiki/Russia - Wikipedia(Engleska verzija)"); SendClientMessage(playerid, COLOR_YELLOW2, "hr.wikipedia.org/wiki/Rusija - Wikipedia(Hrvatska verzija)"); gPlayerRegStep[playerid] = 0; PlayerInfo[playerid][pSelected] = 1; PlayerInfo[playerid][pNaglasak] = 7; } else if (listitem == 7) { PlayerInfo[playerid][pPlace] = 4; SendClientMessage(playerid, COLOR_YELLOW2, "Kao mjesto rođenja vaљeg lika izabrali ste Kinu. Sada moћete RPati da je vaљ lik iz sljedećih gradova:"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Shanghai"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Peking"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Wuhan"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Chongqing"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Xian"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Chengdu"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Tianjin"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Shenyang"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Harbin"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Nanjing"); SendClientMessage(playerid, COLOR_YELLOW2, "Viљe o Kini moћete naći na sljedećim stranicama:"); SendClientMessage(playerid, COLOR_YELLOW2, "en.wikipedia.org/wiki/China - Wikipedia(Engleska verzija)"); SendClientMessage(playerid, COLOR_YELLOW2, "hr.wikipedia.org/wiki/Kina - Wikipedia(Hrvatska verzija)"); gPlayerRegStep[playerid] = 0; PlayerInfo[playerid][pSelected] = 1; PlayerInfo[playerid][pNaglasak] = 8; } else if (listitem == 8) { PlayerInfo[playerid][pPlace] = 4; SendClientMessage(playerid, COLOR_YELLOW2, "Kao mjesto rođenja vaљeg lika izabrali ste Japan. Sada moћete RPati da je vaљ lik iz sljedećih gradova:"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Tokio"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Jokohama"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Osaka"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Nagoja"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Saporo"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Kobe"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Kjoto"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Fukuoka"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Hiroљima"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Nagasaki"); SendClientMessage(playerid, COLOR_YELLOW2, "Viљe o Japanu moћete naći na sljedećim stranicama:"); SendClientMessage(playerid, COLOR_YELLOW2, "en.wikipedia.org/wiki/Japan - Wikipedia(Engleska verzija)"); SendClientMessage(playerid, COLOR_YELLOW2, "hr.wikipedia.org/wiki/Japan - Wikipedia(Hrvatska verzija)"); gPlayerRegStep[playerid] = 0; PlayerInfo[playerid][pSelected] = 1; PlayerInfo[playerid][pNaglasak] = 9; } else if (listitem == 9) { PlayerInfo[playerid][pPlace] = 4; SendClientMessage(playerid, COLOR_YELLOW2, "Kao mjesto rođenja vaљeg lika izabrali ste Egipat. Sada moћete RPati da je vaљ lik iz sljedećih gradova:"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Kairo"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Aleksandrija"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Giza"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Shubra El-Kheima"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Port Said"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Suez"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Luksor"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Zagazig"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Asuan"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Idfu"); SendClientMessage(playerid, COLOR_YELLOW2, "Viљe o Egiptu moћete naći na sljedećim stranicama:"); SendClientMessage(playerid, COLOR_YELLOW2, "en.wikipedia.org/wiki/Egypt - Wikipedia(Engleska verzija)"); SendClientMessage(playerid, COLOR_YELLOW2, "hr.wikipedia.org/wiki/Egipat - Wikipedia(Hrvatska verzija)"); gPlayerRegStep[playerid] = 0; PlayerInfo[playerid][pSelected] = 1; PlayerInfo[playerid][pNaglasak] = 10; } else if (listitem == 10) { PlayerInfo[playerid][pPlace] = 4; SendClientMessage(playerid, COLOR_YELLOW2, "Kao mjesto rođenja vaљeg lika izabrali ste Tunis. Sada moћete RPati da je vaљ lik iz sljedećih gradova:"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Tunis"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Sfex"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Ariana"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Sousse"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Ettadhamen"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Kairouan"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Gabes"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Bizerte"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}La Goulette"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Gafsa"); SendClientMessage(playerid, COLOR_YELLOW2, "Viљe o Tunisu moћete naći na sljedećim stranicama:"); SendClientMessage(playerid, COLOR_YELLOW2, "en.wikipedia.org/wiki/Tunis - Wikipedia(Engleska verzija)"); SendClientMessage(playerid, COLOR_YELLOW2, "hr.wikipedia.org/wiki/Tunis - Wikipedia(Hrvatska verzija)"); gPlayerRegStep[playerid] = 0; PlayerInfo[playerid][pSelected] = 1; PlayerInfo[playerid][pNaglasak] = 11; } else if (listitem == 10) { PlayerInfo[playerid][pPlace] = 4; SendClientMessage(playerid, COLOR_YELLOW2, "Kao mjesto rođenja vaљeg lika izabrali ste Alћir. Sada moћete RPati da je vaљ lik iz sljedećih gradova:"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Alћir"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Oran"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Kusantina"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Annaba"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Batna"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Blida"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Setif"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Selif"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Dћelfa"); SendClientMessage(playerid, COLOR_YELLOW2, "- {FFFFFF}Biskra"); SendClientMessage(playerid, COLOR_YELLOW2, "Viљe o Alћiru moћete naći na sljedećim stranicama:"); SendClientMessage(playerid, COLOR_YELLOW2, "en.wikipedia.org/wiki/Algeria - Wikipedia(Engleska verzija)"); SendClientMessage(playerid, COLOR_YELLOW2, "hr.wikipedia.org/wiki/Alћir - Wikipedia(Hrvatska verzija)"); gPlayerRegStep[playerid] = 0; PlayerInfo[playerid][pSelected] = 1; PlayerInfo[playerid][pNaglasak] = 12; } } else { Kick(playerid); } }
Код:
if (realchat) { if(PlayerInfo[playerid][pNaglasak] == 1) { new sendername[MAX_PLAYER_NAME], string[128]; GetPlayerName(playerid, sendername, sizeof(sendername)); sendername[strfind(sendername,"_")] = ' '; format(string, sizeof(string), "%s[CAL]: %s", sendername, text); ProxDetector(10.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); new lengthtime = strlen(text); new time = lengthtime*50; ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0,0,0,time); return 0; } if(PlayerInfo[playerid][pNaglasak] == 2) { new sendername[MAX_PLAYER_NAME], string[128]; GetPlayerName(playerid, sendername, sizeof(sendername)); sendername[strfind(sendername,"_")] = ' '; format(string, sizeof(string), "%s[NEV]: %s", sendername, text); ProxDetector(10.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); new lengthtime = strlen(text); new time = lengthtime*50; ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0,0,0,time); return 0; } if(PlayerInfo[playerid][pNaglasak] == 3) { new sendername[MAX_PLAYER_NAME], string[128]; GetPlayerName(playerid, sendername, sizeof(sendername)); sendername[strfind(sendername,"_")] = ' '; format(string, sizeof(string), "%s[TEX]: %s", sendername, text); ProxDetector(10.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); new lengthtime = strlen(text); new time = lengthtime*50; ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0,0,0,time); return 0; } if(PlayerInfo[playerid][pNaglasak] == 4) { new sendername[MAX_PLAYER_NAME], string[128]; GetPlayerName(playerid, sendername, sizeof(sendername)); sendername[strfind(sendername,"_")] = ' '; format(string, sizeof(string), "%s[ENG]: %s", sendername, text); ProxDetector(10.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); new lengthtime = strlen(text); new time = lengthtime*50; ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0,0,0,time); return 0; } if(PlayerInfo[playerid][pNaglasak] == 5) { new sendername[MAX_PLAYER_NAME], string[128]; GetPlayerName(playerid, sendername, sizeof(sendername)); sendername[strfind(sendername,"_")] = ' '; format(string, sizeof(string), "%s[ITA]: %s", sendername, text); ProxDetector(10.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); new lengthtime = strlen(text); new time = lengthtime*50; ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0,0,0,time); return 0; } if(PlayerInfo[playerid][pNaglasak] == 6) { new sendername[MAX_PLAYER_NAME], string[128]; GetPlayerName(playerid, sendername, sizeof(sendername)); sendername[strfind(sendername,"_")] = ' '; format(string, sizeof(string), "%s[SPA]: %s", sendername, text); ProxDetector(10.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); new lengthtime = strlen(text); new time = lengthtime*50; ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0,0,0,time); return 0; } if(PlayerInfo[playerid][pNaglasak] == 7) { new sendername[MAX_PLAYER_NAME], string[128]; GetPlayerName(playerid, sendername, sizeof(sendername)); sendername[strfind(sendername,"_")] = ' '; format(string, sizeof(string), "%s[RUS]: %s", sendername, text); ProxDetector(10.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); new lengthtime = strlen(text); new time = lengthtime*50; ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0,0,0,time); return 0; } if(PlayerInfo[playerid][pNaglasak] == 8) { new sendername[MAX_PLAYER_NAME], string[128]; GetPlayerName(playerid, sendername, sizeof(sendername)); sendername[strfind(sendername,"_")] = ' '; format(string, sizeof(string), "%s[CHA]: %s", sendername, text); ProxDetector(10.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); new lengthtime = strlen(text); new time = lengthtime*50; ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0,0,0,time); return 0; } if(PlayerInfo[playerid][pNaglasak] == 9) { new sendername[MAX_PLAYER_NAME], string[128]; GetPlayerName(playerid, sendername, sizeof(sendername)); sendername[strfind(sendername,"_")] = ' '; format(string, sizeof(string), "%s[JAP]: %s", sendername, text); ProxDetector(10.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); new lengthtime = strlen(text); new time = lengthtime*50; ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0,0,0,time); return 0; } if(PlayerInfo[playerid][pNaglasak] == 10) { new sendername[MAX_PLAYER_NAME], string[128]; GetPlayerName(playerid, sendername, sizeof(sendername)); sendername[strfind(sendername,"_")] = ' '; format(string, sizeof(string), "%s[EGI]: %s", sendername, text); ProxDetector(10.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); new lengthtime = strlen(text); new time = lengthtime*50; ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0,0,0,time); return 0; } if(PlayerInfo[playerid][pNaglasak] == 1) { new sendername[MAX_PLAYER_NAME], string[128]; GetPlayerName(playerid, sendername, sizeof(sendername)); sendername[strfind(sendername,"_")] = ' '; format(string, sizeof(string), "%s[TUN]: %s", sendername, text); ProxDetector(10.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); new lengthtime = strlen(text); new time = lengthtime*50; ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0,0,0,time); return 0; } if(PlayerInfo[playerid][pNaglasak] == 1) { new sendername[MAX_PLAYER_NAME], string[128]; GetPlayerName(playerid, sendername, sizeof(sendername)); sendername[strfind(sendername,"_")] = ' '; format(string, sizeof(string), "%s[ALG]: %s", sendername, text); ProxDetector(10.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); new lengthtime = strlen(text); new time = lengthtime*50; ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0,0,0,time); return 0; } }