heker
Membru-
Posts
617 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
News
Documentation
Everything posted by heker
-
fara return 1; nu mai da :P
-
CMD:rinttele(playerid,params[]) { if(IsPlayerConnected(playerid)) { new DialogString[512]; format(DialogString, sizeof DialogString, "%s%s", dialog1, dialog2); ShowPlayerDialog(playerid, 72, DIALOG_STYLE_MSGBOX, "Dialogul Meu", DialogString, "Ok", "Exit"); } return 1; } new dialog1[ ] = "Aici treci ce contine dialogul tau", dialog2[ ] = "Folosesti dialog2, in caz de este dialog 1 prea mare "; // si asa mai departe
-
ce scrie in mysql_log ?
-
este si normal foloseste GivePlayerWeapon :P
-
Toti incepatori sunteti la fel, inainte de a posta citeste si tu regulamentul :tongue:
-
si...... topic close. Citeste regulament, poate iti vei da seama pe ce motiv ai primit warn
-
Nu folosii neaparat VARCHAR(60) 60 reprezinta numaru de caractere
-
Fi atent ca esti cam nou in script, stergeti comanda ta de unban si de ban, fac o variabila pLocked si adaugi comanda de /ban if(strcmp(cmd, "/ban", true) == 0) { if(IsPlayerConnected(playerid)) { if (PlayerInfo[playerid][pAdmin] >= 1337) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /lockacc [playerid/PartOfName]"); return 1; } if(AdminSecurity[playerid] == 0) { SendClientMessage(playerid, COLOR_GREY, "For security reasons, first authorizing it at /account panel!"); return 1; } giveplayerid = ReturnUser(tmp); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if(giveplayerid==playerid) return 1; GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); if(PlayerInfo[giveplayerid][pLocked] == 0) { PlayerInfo[giveplayerid][pLocked] = 1; format(string, sizeof(string), "Admin %s has locked your account.!", sendername); SendClientMessage(giveplayerid, COLOR_YELLOW, string); Kick(giveplayerid); SendClientMessage(playerid, COLOR_YELLOW, "Account locked succesfuly."); format(string, sizeof(string), "[SERVER]: %s has locked %s account!", sendername, giveplayer); ABroadCast(COLOR_LIGHTRED,string,1); } } } } else { SendClientMessage(playerid, COLOR_GRAD1, "You must be a level 1337 admin to do this command."); } } return 1; } la onplayerconnect adaugi asta [pawn]if(PlayerInfo[playerid][pLocked] == 1) // Auto-kick { SendClientMessage(playerid, COLOR_LIGHTRED, "Your account is locked. Make a unlock/unban request on forums: 'www.gfzone.ro/forum'."); Kick(playerid); }[/pawn] iar de /unban if (strcmp(cmd, "/unban", true)==0) { if(PlayerInfo[playerid][pAdmin] >=1) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /unban [PlayerName]"); return 1; } format(string, sizeof(string), "users/%s.ini", tmp); new File:hFile = fopen(string, io_read); //new File: hFile = fopen(string, io_append); if (hFile) { new Data[ 256 ],val [ 256 ]; while ( fread( hFile , Data , sizeof( Data ) ) ) if( strcmp( ini_GetKey( Data ) , "Locked" , true ) == 0 ) val = ini_GetValue( Data ); if(strval( val ) == 1) { new var[64]; format(var, sizeof(var), "Locked=1\n"); //fdeleteline(string,var); fclose(hFile); hFile = fopen(string, io_append); format(var, 64, "Locked=0\n"); fwrite(hFile, var); fclose(hFile); } else { fclose(hFile); return SendClientMessage(playerid, COLOR_WHITE, " ERROR : Player account doesn`t locked!!"); } } GetPlayerName(playerid, sendername, sizeof(sendername)); SendClientMessage(playerid, COLOR_WHITE, "Player unlocked please ask for his IP and use /unbanip [IP]"); format(string, 128, "AdmWarning: %s has unbanned %s", sendername, tmp); ABroadCast(COLOR_LIGHTRED,string,1); new year, month,day; getdate(year, month, day); format(string, 128, "AdmWarning: %s has unbanned %s (%d-%d-%d)", sendername, tmp,day,month,year); BanLog(string); } else { SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!"); } return 1; }
-
Doar la SA:MP iti face asa ? alte jocuri NU ?
-
PlayerInfo[playerid][pLevel] = 3; GivePlayerMoney(playerid, 3000000); la variabila unde ti se logeaza cand se inregistreaza cineva TOPIC CLOSE PROBLEME GF
-
Connection is dead - Conexiunea este moarta. Dai ceva aspirine sa reinvie ) GLUMA ! ia incerca cu mysql.domeniu.ro
-
ShowBell probleme gf multumim de intelegere xD PS: Ti-a explicat chinezu bn :P
-
Salut gabydemocray din pacate primesti topic close. Incerca sa citesti regulamentul. Fara subiecturi de genu "ajutor pls" ca nu suntem cocalari. Vezi k tea ajutat chinezu :P
-
de ce iti bati capul cu pSQLID cand poti face un sistem mai simplu ?
-
fa conectarea corecta la baza de date >.<
-
Aici nu ceri scripturi, iti faci singur comenzille foloseste ceva gen pBanned PlayerInfo[playerid][pBanned] = 1; si rezolvi
-
Topic Close citeste regulament poate iti vei de seama de ce ai lock
-
ce apare in mysql_log ?
-
Aici [pawn] if(newstate == PLAYER_STATE_DRIVER) { if(GetPlayerVehicleID(playerid) == Converse) { new sendername[MAX_PLAYER_NAME]; GetPlayerName(playerid, sendername, sizeof(sendername)); if(strcmp(sendername,"Converse",true)) { SendClientMessage(playerid,COLOR_GREY,"Nu te atinge ca iei vopseaua "); new Float:cx, Float:cy, Float:cz; GetPlayerPos(playerid, cx, cy, cz); SetPlayerPos(playerid, cx, cy, cz); } }[/pawn] tu deschizi 3 } si inchizi 2 } corect este [pawn] if(newstate == PLAYER_STATE_DRIVER) { if(GetPlayerVehicleID(playerid) == Converse) { new sendername[MAX_PLAYER_NAME]; GetPlayerName(playerid, sendername, sizeof(sendername)); if(strcmp(sendername,"Converse",true)) { SendClientMessage(playerid,COLOR_GREY,"Nu te atinge ca iei vopseaua "); new Float:cx, Float:cy, Float:cz; GetPlayerPos(playerid, cx, cy, cz); SetPlayerPos(playerid, cx, cy, cz); } } }[/pawn]
-
ai revenit Zh3r0 xD ON: Frumos imi place :)
-
1. NU faceti topicuri in care sa postati doar erorile, postati si liniile. 2. Nu scrieti in topicuri "ajutama urgent plz trebuie sa hostez serverul" ! 3. De asemenea nu este respectata regula "Titlul topicului trebuie sa arate problema nu "Ajutor" "Salvati-ma" , acele topicuri ce au la titlu "Ajutor" sau alte chestii ce nu au legatura cu continutul vor fi sterse , postati la titlu problema voastra!
-
[pawn]SetPlayerCheckPoint(....); CP[playerid] == 100;[/pawn] Iar la [pawn]public OnPlayerEnterCheckpoint(playerid) {[/pawn] [pawn]else if(CP[playerid]==100) { // ce contine comanda }[/pawn] eu unul asa as face :)
-
cand eram incepator ca tine foloseam copy-paste mai greu dar reuseam de ce nu incerci sa cauti in mod scrisurile cum ai zis tu acolo si sa vazi cum sta treaba, te mai avantajeaza :P