Jump to content

heker

Membru
  • Posts

    617
  • Joined

  • Last visited

    Never

Everything posted by heker

  1. heker

    erori X(

    fara return 1; nu mai da :P
  2. heker

    erori X(

    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
  3. heker

    .....

    este si normal foloseste GivePlayerWeapon :P
  4. Toti incepatori sunteti la fel, inainte de a posta citeste si tu regulamentul :tongue:
  5. si...... topic close. Citeste regulament, poate iti vei da seama pe ce motiv ai primit warn
  6. Nu folosii neaparat VARCHAR(60) 60 reprezinta numaru de caractere
  7. heker

    /unban

    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; }
  8. heker

    Problema SAMP

    Doar la SA:MP iti face asa ? alte jocuri NU ?
  9. PlayerInfo[playerid][pLevel] = 3; GivePlayerMoney(playerid, 3000000); la variabila unde ti se logeaza cand se inregistreaza cineva TOPIC CLOSE PROBLEME GF
  10. heker

    Problema mysql

    Connection is dead - Conexiunea este moarta. Dai ceva aspirine sa reinvie ) GLUMA ! ia incerca cu mysql.domeniu.ro
  11. ShowBell probleme gf multumim de intelegere xD PS: Ti-a explicat chinezu bn :P
  12. 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
  13. de ce iti bati capul cu pSQLID cand poti face un sistem mai simplu ?
  14. heker

    Problema mysql

    fa conectarea corecta la baza de date >.<
  15. Aici nu ceri scripturi, iti faci singur comenzille foloseste ceva gen pBanned PlayerInfo[playerid][pBanned] = 1; si rezolvi
  16. Topic Close citeste regulament poate iti vei de seama de ce ai lock
  17. heker

    Problema mysql

    ce apare in mysql_log ?
  18. heker

    Ajutor ! !

    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]
  19. ai revenit Zh3r0 xD ON: Frumos imi place :)
  20. 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!
  21. [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 :)
  22. 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
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.