Rimmon
Membru-
Posts
795 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
News
Documentation
Everything posted by Rimmon
-
Arata codul de la dialogul de register... Apropo , eu am cerut codurile de la SQLite , nu tot callback-ul =))
-
ok , si ce vrei sa facem noi?
-
Ok , deci tu folosesti SQLite , Aratane dialogul/comanda de register/login Si callbackul OnPlayerDisconnect , sper ca stii la ce ma refer.. Sau , daca te referi ca nici nu se creeaza in scriptfiles accounts.db aratane codul de la callback-ul OnGameModeInit
-
Nu am mai facut alt topic pentru ca l-am vazut pe asta deschis xD Imi puteti da si mie niste idei? Orice ar fi dar nu de RP/GF...(nu ma pricep)
-
oriunde in GM inafara tuturor callbackurilor... De obicei toti il pun in josul scriptului..
-
Vezi asa..pt invite [pawn] if(strcmp(cmd, "/invite", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /invite [playerid/PartOfName]"); return 1; } new para1; new ftext[20]; para1 = ReturnUser(tmp); if (PlayerInfo[playerid][pLeader] >= 1) { if(IsPlayerConnected(para1)) { if(para1 != INVALID_PLAYER_ID) { if (gTeam[para1]==TEAM_GREEN && PlayerInfo[para1][pMember] == 0 && PlayerInfo[para1][pFMember] == 255) { if(PlayerInfo[para1][pPunish] > 0) { SendClientMessage(playerid, COLOR_GRAD2, "Nu poti invita acest player deoarece are FactionPunish !"); return 1; } if(PlayerInfo[playerid][pLeader] == 1) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Police Force"; ChosenSkin[para1] = 265; SetPlayerSkin(para1, 265); SpawnPlayer ( para1 ) ;} else if(PlayerInfo[playerid][pLeader] == 2) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "SRI/ATF"; ChosenSkin[para1] = 286; SetPlayerSkin(para1, 286); SpawnPlayer ( para1 ) ;} else if(PlayerInfo[playerid][pLeader] == 3) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Armata Romana"; ChosenSkin[para1] = 285; SetPlayerSkin(para1, 285); SpawnPlayer ( para1 ) ;} else if(PlayerInfo[playerid][pLeader] == 4) { PlayerInfo[para1][pTeam] = 1; gTeam[para1] = 1; ftext = "Smurd"; ChosenSkin[para1] = 228; SetPlayerSkin(para1, 228); SpawnPlayer ( para1 ) ;} else if(PlayerInfo[playerid][pLeader] == 5) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Clanul Vampirilor"; ChosenSkin[para1] = 111; SetPlayerSkin(para1, 111); SpawnPlayer ( para1 ) ;} else if(PlayerInfo[playerid][pLeader] == 6) { PlayerInfo[para1][pTeam] = 6; gTeam[para1] = 6; ftext = "Clanu Camataru"; ChosenSkin[para1] = 113; SetPlayerSkin(para1, 113); SpawnPlayer ( para1 ) ;} else if(PlayerInfo[playerid][pLeader] == 7) { return 1; } else if(PlayerInfo[playerid][pLeader] == 8) { PlayerInfo[para1][pTeam] = 10; gTeam[para1] = 12; ftext = "Hitman Agency"; ChosenSkin[para1] = 294; SetPlayerSkin(para1, 294); SpawnPlayer ( para1 ) ;} else if(PlayerInfo[playerid][pLeader] == 9) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "ABC Studio"; ChosenSkin[para1] = 227; SetPlayerSkin(para1, 227); SpawnPlayer ( para1 ) ;} else if(PlayerInfo[playerid][pLeader] == 10) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Taxi Cab Company"; ChosenSkin[para1] = 61; SetPlayerSkin(para1, 61); SpawnPlayer ( para1 ) ;} else if(PlayerInfo[playerid][pLeader] == 11) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Scoala de Soferi"; ChosenSkin[para1] = 171; SetPlayerSkin(para1, 171); SpawnPlayer ( para1 ) ;} else if(PlayerInfo[playerid][pLeader] == 12) { PlayerInfo[para1][pTeam] = 15; gTeam[para1] = 15; ftext = "Clanul Sadoveanu"; ChosenSkin[para1] = 270; SetPlayerSkin(para1, 270); SpawnPlayer ( para1 ) ;} else if(PlayerInfo[playerid][pLeader] == 13) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Clanul Molustelor"; ChosenSkin[para1] = 126; SetPlayerSkin(para1, 126); SpawnPlayer ( para1 ) ;} else if(PlayerInfo[playerid][pLeader] == 14) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Clanul Vampirilor"; ChosenSkin[para1] = 296; SetPlayerSkin(para1, 296); SpawnPlayer ( para1 ) ;} else if(PlayerInfo[playerid][pLeader] == 15) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Clanul Ucigasilor"; ChosenSkin[para1] = 272; SetPlayerSkin(para1, 272); SpawnPlayer ( para1 ) ;} else if(PlayerInfo[playerid][pLeader] == 16) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 5; ftext = "Need For Speed"; ChosenSkin[para1] = 299; SetPlayerSkin(para1, 268); SpawnPlayer ( para1 ) ;} else { return 1; } GetPlayerName(para1, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader]; PlayerInfo[para1][pRank] = 1; PlayerInfo[para1][pFwarn] = 0; printf("AdmCmd: %s has invited %s to join %s.", sendername, giveplayer, ftext); format(string, sizeof(string), "Ai fost invitat in factiunea %s de catre Liderul %s !", ftext, sendername); SendClientMessage(para1, COLOR_WHITE, string); SpawnPlayer(playerid); format(string, sizeof(string), "L-ai invitat pe %s in Factiunea %s !", giveplayer,ftext); SendClientMessage(playerid, COLOR_WHITE, string); } else { SendClientMessage(playerid, COLOR_GREY, "Acest jucator este deja intr-o Factiune sau are Wanted !"); return 1; } } } } else { SendClientMessage(playerid, COLOR_GRAD1, "Nu ai acces la aceasta comanda(Leaders Only)!"); } } return 1; }[/pawn]
-
1. Makeleader [pawn]if(strcmp(cmd, "/makeleader", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /makeleader [playerid/PartOfName] [Number(1-16)]"); return 1; } new para1; new level; para1 = ReturnUser(tmp); tmp = strtok(cmdtext, idx); level = strval(tmp); if(level > 16 || level < 0) { SendClientMessage(playerid, COLOR_GREY, "Numarul factiunilor este de la 0 la 16 !"); return 1; } if (PlayerInfo[playerid][pAdmin] >= 6) { if(IsPlayerConnected(para1)) { if(para1 != INVALID_PLAYER_ID) { if(PlayerInfo[para1][pMember] > 0 || PlayerInfo[para1][pFMember] < 255 || PlayerInfo[para1][pPunish] > 0) { SendClientMessage(playerid, COLOR_GREY, "Acest jucator este deja intr-o Factiune !"); return 1; } GetPlayerName(para1, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); PlayerInfo[para1][pLeader] = level; SpawnPlayer ( para1 ) ; format(string, sizeof(string), "Ai fost ales Lider de catre Administratorul %s !", sendername); SendClientMessage(para1, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "I-ai dat lui %s Lider la Factiunea Numarul %d !", giveplayer,level); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); if(level == 0) { PlayerInfo[para1][pChar] = 0; PlayerInfo[para1][pRank] = 0; gTeam[para1] = 3; PlayerInfo[para1][pTeam] = 0; return 1; } else if(level == 1) { PlayerInfo[para1][pChar] = 295; } //Politia Romana else if(level == 2) { PlayerInfo[para1][pChar] = 285; } //SRI else if(level == 3) { PlayerInfo[para1][pChar] = 287; } //Armata Romana else if(level == 4) { PlayerInfo[para1][pChar] = 228; } //SMURD else if(level == 5) { PlayerInfo[para1][pChar] = 111; } //VAMPIRILOR else if(level == 6) { PlayerInfo[para1][pChar] = 113; } //CAMATARU else if(level == 7) { PlayerInfo[para1][pChar] = 147; } //Mayor else if(level == 8) { PlayerInfo[para1][pChar] = 294; } //Hitmans else if(level == 9) { PlayerInfo[para1][pChar] = 227; } //Stirile BloodZone else if(level == 10) { PlayerInfo[para1][pChar] = 61; } //Taxi Cab Company else if(level == 11) { PlayerInfo[para1][pChar] = 171; } //Driving/Flying School else if(level == 12) { PlayerInfo[para1][pChar] = 270; } //SADOVEANU Family else if(level == 13) { PlayerInfo[para1][pChar] = 126; } //MOLUSTELOR Family else if(level == 14) { PlayerInfo[para1][pChar] = 296; } //CAPONE Family else if(level == 15) { PlayerInfo[para1][pChar] = 272; } //UCIGASII else if(level == 16) { PlayerInfo[para1][pChar] = 268; } //Need For Speed if(level == 0) { gTeam[para1] = 3; PlayerInfo[para1][pTeam] = 3; } else if(level == 1 || level == 2 || level == 3) { gTeam[para1] = 2; PlayerInfo[para1][pTeam] = 2; } else if(level == 4) { gTeam[para1] = 1; PlayerInfo[para1][pTeam] = 1; } else { gTeam[para1] = 15; PlayerInfo[para1][pTeam] = 15; } SetPlayerSkin(para1, PlayerInfo[para1][pChar]); if(level == 0) { PlayerInfo[para1][pRank] = 0; } else { PlayerInfo[para1][pRank] = 6; } } } } else { SendClientMessage(playerid, COLOR_GRAD1, "Nu ai acces la aceasta comanda!"); } } return 1; }[/pawn] 2. Invite [pawn] if(strcmp(cmd, "/invite", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /invite [playerid/PartOfName]"); return 1; } new para1; new ftext[20]; para1 = ReturnUser(tmp); if (PlayerInfo[playerid][pLeader] >= 1) { if(IsPlayerConnected(para1)) { if(para1 != INVALID_PLAYER_ID) { if (gTeam[para1]==TEAM_GREEN && PlayerInfo[para1][pMember] == 0 && PlayerInfo[para1][pFMember] == 255) { if(PlayerInfo[para1][pPunish] > 0) { SendClientMessage(playerid, COLOR_GRAD2, "Nu poti invita acest player deoarece are FactionPunish !"); return 1; } if(PlayerInfo[playerid][pLeader] == 1) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Police Force"; ChosenSkin[para1] = 265; SetPlayerSkin(para1, 265); } else if(PlayerInfo[playerid][pLeader] == 2) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "SRI/ATF"; ChosenSkin[para1] = 286; SetPlayerSkin(para1, 286); } else if(PlayerInfo[playerid][pLeader] == 3) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Armata Romana"; ChosenSkin[para1] = 285; SetPlayerSkin(para1, 285); } else if(PlayerInfo[playerid][pLeader] == 4) { PlayerInfo[para1][pTeam] = 1; gTeam[para1] = 1; ftext = "Smurd"; ChosenSkin[para1] = 228; SetPlayerSkin(para1, 228); } else if(PlayerInfo[playerid][pLeader] == 5) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Clanul Vampirilor"; ChosenSkin[para1] = 111; SetPlayerSkin(para1, 111); } else if(PlayerInfo[playerid][pLeader] == 6) { PlayerInfo[para1][pTeam] = 6; gTeam[para1] = 6; ftext = "Clanu Camataru"; ChosenSkin[para1] = 113; SetPlayerSkin(para1, 113); } else if(PlayerInfo[playerid][pLeader] == 7) { return 1; } else if(PlayerInfo[playerid][pLeader] == 8) { PlayerInfo[para1][pTeam] = 10; gTeam[para1] = 12; ftext = "Hitman Agency"; ChosenSkin[para1] = 294; SetPlayerSkin(para1, 294); } else if(PlayerInfo[playerid][pLeader] == 9) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "ABC Studio"; ChosenSkin[para1] = 227; SetPlayerSkin(para1, 227); } else if(PlayerInfo[playerid][pLeader] == 10) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Taxi Cab Company"; ChosenSkin[para1] = 61; SetPlayerSkin(para1, 61); } else if(PlayerInfo[playerid][pLeader] == 11) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Scoala de Soferi"; ChosenSkin[para1] = 171; SetPlayerSkin(para1, 171); } else if(PlayerInfo[playerid][pLeader] == 12) { PlayerInfo[para1][pTeam] = 15; gTeam[para1] = 15; ftext = "Clanul Sadoveanu"; ChosenSkin[para1] = 270; SetPlayerSkin(para1, 270); } else if(PlayerInfo[playerid][pLeader] == 13) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Clanul Molustelor"; ChosenSkin[para1] = 126; SetPlayerSkin(para1, 126); } else if(PlayerInfo[playerid][pLeader] == 14) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Clanul Vampirilor"; ChosenSkin[para1] = 296; SetPlayerSkin(para1, 296); } else if(PlayerInfo[playerid][pLeader] == 15) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Clanul Ucigasilor"; ChosenSkin[para1] = 272; SetPlayerSkin(para1, 272); } else if(PlayerInfo[playerid][pLeader] == 16) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 5; ftext = "Need For Speed"; ChosenSkin[para1] = 299; SetPlayerSkin(para1, 268); } else { return 1; } GetPlayerName(para1, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader]; PlayerInfo[para1][pRank] = 1; PlayerInfo[para1][pFwarn] = 0; SpawnPlayer(playerid); printf("AdmCmd: %s has invited %s to join %s.", sendername, giveplayer, ftext); format(string, sizeof(string), "Ai fost invitat in factiunea %s de catre Liderul %s !", ftext, sendername); SendClientMessage(para1, COLOR_WHITE, string); SpawnPlayer(playerid); format(string, sizeof(string), "L-ai invitat pe %s in Factiunea %s !", giveplayer,ftext); SendClientMessage(playerid, COLOR_WHITE, string); SpawnPlayer(para1); } else { SendClientMessage(playerid, COLOR_GREY, "Acest jucator este deja intr-o Factiune sau are Wanted !"); return 1; } } } } else { SendClientMessage(playerid, COLOR_GRAD1, "Nu ai acces la aceasta comanda(Leaders Only)!"); } } return 1; }[/pawn] Vezi asa
-
Ti-a dat warn pentru 2xPost mha , nu mai sari asa
-
misto server , 0/5 =)) =)) Apropo , eu am spus sa nu va dea mura in gura...el o pus cum o inteles =))
-
Inseamna ca esti .... daca vrei sa faci doar cu { } , e mai rapid cu "r" , "v" etc..si daca stii deja ca , culorile se scriu cu {FF0000} - rosu...etc , de ce ai mai facut acest topic?? I-a si strege toate culoarile din stast notate intre " si pune cu {} , ce e asa de greu?
-
Pai , am facut mai multe textdraw-uri care le folosesc la OnPlayerUpdate (vreau sa-l fac "TextDrawSetString") , mai am un textdraw de acest gen si merge perfect dar asta nu apare cand il pun la OnPlayerUpdate Deci : Daca las textdraw-ul slimplu fara sa-l modific cu TextDrawSetString , textdraw-ul apare tot cum trebuie , odata ce il "editez" cu TextDrawSetString nu apare tot ( apare doar textdraw-ul care nu vreau sa-l modific... ) , nu stiu cat intelegeti , o sa las si poze , [pawn]format ( str1 , 50 , "Yes:~r~%d " , Yes ) ; TextDrawSetString ( mVote4 , str1 ) ; format ( str2 , 50 , "No:~r~%d " , No ) ; TextDrawSetString ( mVote5 , str2 ) ; if ( VotedFor == 0 ) { map = "Ghost Village" ; } else if ( VotedFor == 1 ) { map = "Ghost Town" ; } format ( str3 , 256 , "Vote for map:~r~%s " , map ) ; TextDrawSetString ( mVote0 , str3 ) ; loop ( i , MAX_PLAYERS ) { TextDrawShowForPlayer ( i , mVote0 ) ; TextDrawShowForPlayer ( i , mVote4 ) ; TextDrawShowForPlayer ( i , mVote5 ) ; }[/pawn] Asa ar trebui sa arate TD-ul Asa arata cand bag codul de mai sus la OnPlayerUpdate
-
Ce destept esti tu ma , daca mai avea folosit odata acel id la un alt dialog ii aparea primul dialog , nu dialogul de register/login , dar lui nu ii apare deloc , nu mai fa posturi aiure..
-
BUBU INSELATOR DE MESERIE VINDE GM PROASTE PE 30 E
Rimmon replied to Matei Irinel's topic in Totul şi Nimic
1.Sunteti fraieri 2.Bubu nu e prost , daca era prost nu va putea fraieri , voi sunteti aia pro.sti pentru ca va lasati fraieriti de el ;) -
Din cate am vazut eu nu e , ca sa te opresti te izbesti de ceva =)) sau astepti un drum drept ca sa te ridici in picioare
-
Sa mor eu daca stiu de unde e =)) , cauta in script ceva de genu PlayerInfo[playerid][Level] = 10; sau PlayerInfo[playerid][Vip] = 3; Ce ti-am dat mai sus 2 coduri care seteaza levelul de vip si admin l maxim , daca gasesti una dintre ele spunemi in ce comanda/callback le ai puse
-
aaa... =))Hai frate , nu stii sa creezi o variabila? Pune asta fix sub #include-uri new ListeningCarnival ; Dupa ce faci asta e posibil sa mai primesti erori , daca nu e facut de tine sistemu de carnaval
-
Nu m-am uitat atent peste erori... undefined symbol "ListeningCarnival" Nu ai variabila ListeningCarnival creata...
-
nu asta e linia...arata linia de mai sus..
-
2.La OnPlayerText faci asa [pawn] new str [ 129 ] ; if ( PlayerInfo [ playerid ] [ Admin ] > 0 ) { format ( str , 129 , "Admin:%s" , text ) ; SetPlayerChatBubble ( playerid ,str , -1 , 200.0 , 10000 ) ; } else if ( PlayerInfo [ playerid ] [ Helper] > 0 ) { format ( str , 129 , "Helper:%s" , text ) ; SetPlayerChatBubble ( playerid ,str , -1 , 200.0 , 10000 ) ; } else if ( PlayerInfo [ playerid ] [ Vip] > 0 ) { format ( str , 129 , "Vip:%s" , text ) ; SetPlayerChatBubble ( playerid ,str , -1 , 200.0 , 10000 ) ; }[/pawn] PS:Nu am testat ,vezi daca-ti merge , tu nu vezi ce scrie cu SetPlayerChat.... trebuie sa testezi cu altcineva
-
Frate , eu nu iti pot da tot nura-n gura , iar tu imi tot dai de la OnPlayerConnect , cauta in GM dcmd_register , si da comanda aia
-
1.Trebuie sa ai Whirlpool in folderul plugins 2.Adauga linia asta in server.cfg la linia plugins Whirlpool
-
1.Ai dat doar login 2.Nu e de la login, arata dialogul de register... 3.Warning-urile lasale pe mai tarziu... 4.Cu banii nu e de la comanda , cred ca folosesti vreun anti cheat...Junk buster , sau altele...
-
Ala era "maintenance" ) , adica forumul era in lucru , nimeni nu a putut intra atunci.. ;)
-
1.Pune mana pe cartea de limba romana ... 2.Din cate inteleg la problema a 2-a cand cineva intra pe server i se seteaza automa levelul de admin la 10 si cel de vip la 3 nu?? Pentru problema a 2-a: Posteaza aici: Comana sau dialogul de login (depinde ce ai , comanda sau dialog) Comana sau dialogul de register... Sau parca era in ladmin loadplayerdata...sau ceva de genu (nu mai stiu cum see numeste) , daca stii la care ma refer posteaz-o si pe aia... Trebuie sa ai pe undeva o variabila care ii seteaza adminul si vip-ul . Iar la problema 1 trebuie sa ai vreun anti cheat pentru bani...folosesti vreo unu??daca da scoatel..daca nu posteaza comanda /setmoney sau setcash , nu mai stiu cum se numeste
-
Ce parere aveti? Vreti si voi ?:>