Jump to content

cristyifrim31O

Membru
  • Posts

    28
  • Joined

  • Last visited

About cristyifrim31O

  • Birthday February 25

Profile Information

  • Sex
    Masculin
  • Location
    Neamt
  • Interests
    Sa ajut lumea :), imi plac fetele, sa scriptez, sa joc csgo, dota, samp si sa fac design in photoshop.
  • In-game Name
    neacristy31O
  • Level of knowledge
    Avansat

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

cristyifrim31O's Achievements

Contributor

Contributor (5/14)

  • First Post
  • Collaborator
  • Conversation Starter
  • Week One Done
  • One Month Later

Recent Badges

3

Reputation

2

Community Answers

  1. Unde aţi întâmpinat problema: forum Descriere problemă:Intru pe un topic, postez in el, dau un refresh si-mi mai arata 2 post-uri postate inainte cu 6 minute.Poze / Videoclip: - Si da e bug pentru ca normal trebuia sa-mi arate acele post-uri, nu dupa ce dau eu refresh.
  2. Iti dau un sfat, sterge tot ce tine de cryptarea parolelor de la WhirlPool. La register pui sa insereze parola in SHA1. Ex: f ormat(iStr, 200, "INSERT INTO `accounts`(`Name`, `Password`) VALUES ('%s', SHA1('%s'))", GetName(playerid), Password); iar la login pui sa selecteze, ex: format(iStr2, 300, "SELECT * FROM `accounts` WHERE `Name` = '%s' AND `Password` = SHA1('%s')", GetName(playerid), iStr);
  3. Foarte frumos, am aflat si eu un includer nou care face ceva ce mi se pare folositor pe un server stunt, +1. Pont: Poti sa optimizezi comanda in felul ala. CMD:startfly(playerid, params[]) StartFly(playerid), SetPlayerHealth(playerid, 100), SetPlayerArmor(playerid, 100); merge si cu return dar arata mai frumos asa.
  4. Vad ca se vorbeste foarte mult despre rpg aici. Eu vreau sa spun ca si serverele stunt in romania s-au cum dus pe apa sambetei. De cand a postat sHiTman XSS v4 au inceput sa apara o groaza de edit-uri. Apoi a postat WoS, unde au aparut toti cu toate serverele lor misto, laguite de la proasta optimizare de la WoS. Acum cam tot ce e pe stunt se plagiaza de la rss si xss, rar daca gasesti idei originale fara buguri.
  5. Descriere tutorial: Random checkpoints(cand cineva e intr-un job sa nu i se seteze cp-ul fix ci sa-l dea random). Mie doar imi explicati cum faci aia cu random, ca te configurat ma ocup eu.
  6. Arata-ne OnPlayerDeath sau vezi sa nu ti se cheme callback-ul OnPlayerRequestClass.
  7. V-ati intrebat cum e sa sperii pe cineva cand tragi in el si sa nu-i scoata HP? Asta poate fi si un fel de /god. Bun, prima data avem nevoie doar de 1 includer. scrieti asta la locul includerului. #include <zcmd> Ne vom folosi de el sa facem comenzi. Acum cream variabila. new fakeBullets[MAX_PLAYERS]; De aceasta variabile ne vom folosi ca sa definim cand playerul are gloantele false. Acum cream comanda. CMD:fakebullets(playerid, params[]) { //Cream comanda if(isnull(params)) return SendClientMessage(playerid, -1, "/FakeBullets [ON/OFF]"); if(strcmp(params, "on", true) == 0) return fakeBullets[playerid] = 1, SendClientMessage(playerid, -1, "/FakeBullets [ON]"), PlayerPlaySound(i,1057,0.0,0.0,0.0); if(strcmp(params, "off", true) == 0) return fakeBullets[playerid] = 0, SendClientMessage(playerid, -1, "/FakeBullets [OFF]"), PlayerPlaySound(i,1057,0.0,0.0,0.0); return 1; } Explicatie. if(isnull(params)) return etc. Daca nu scrie nimic ii va da mesaj sa scrie on sau off. if(strcmp..etc) adica playerul trebuie sa scrie /fakebullets on ca sa porneasca fake bullets si /fakebullets off ca se le opreasca. La public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid, bodypart) adaugam: if(fakeBullets[playerid] == 1) return SetPlayerHealth(damagedid, 100); Explicatie: Cand jucatorul primeste damage iar playerul ce a tras avea fakebullets on, i se va seta viata 100 de fiecare data cand este lovit de gloante. Atentie, OnPlayerGiveDamage este inacurat cateodata si acel player poate muri. Cam asta a fost. Multumesc lui Giskard pentru aceasta idee, aceste fake bullets sunt un fel de gloante oarbe.
  8. Am citit problema, dar am vazut ca ai cerut tu script-ul inaintea mea, +ca dupa ce am postat imi arata inca 2 post-uri inainte in care a aratat ca a rezolvat problema si am dat edit.
  9. Am avut un sync prost si a trebuit sa repostez.
  10. TextDrawShowForPlayer(playerid, TextdrawReport[playerid]); // am postat din greseala(syncul forumului).
  11. if(playerVariables[playerid][pAdminLevel] >= 0) TextDrawShowForPlayer(playerid,TextdrawReport);
  12. Tu in sscanf definesti i ca fiind jucatorul caruia ii trimiti. Nu, nu e aceeasi chestie, pentru ca e o simpla variabila, fara o functie anume.
  13. CMD:ban(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi mai intai."); if(IsPlayerConnected(playerid)) { if (PlayerInfo[playerid][pAdmin] >= 3) { new id,reason[128],string[200],giveplayer[30],sendername[30],Type,str[128]; if(sscanf(params, "uds[128]", id,Type,reason)) return SCM(playerid,COLOR_DS,"{B8DBFF}Syntax: /ban <Name/Playerid> <Type(1-account 2-permanent)> <reason>"); if(IsPlayerConnected(id)) { if(id != INVALID_PLAYER_ID) { GetPlayerName(id, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); if(Type == 1) { if(id == playerid) return SendClientMessage(playerid, -1, "Nu te poti bana singur!"); format(string, sizeof(string), "AdmCmd: %s was banned by %s, reason: %s", giveplayer, sendername, reason); SendClientMessageToAll(COLOR_LIGHTRED, string); PlayerInfo[id][pBanned] = 1; SendClientMessage(id,COLOR_LIGHTRED,"[BAN INFO]: Poti face o cerere de unban pe forumul nostru.Forumul este http:."); SendClientMessage(id,COLOR_LIGHTRED,"[HINT]: Te sfatuim sa faci o poza la aceste informatii,si sa o postezi cand faci cerere unban.Apasa F8 pentru a face poza."); format(str,sizeof(str),"UPDATE users SET `Banned`='1' WHERE `name`='%s'",giveplayer); mysql_query(SQL,str); new ip[25]; GetPlayerIp(id, ip, sizeof(ip)); Banlog(ip,PlayerInfo[id][pSQLID],PlayerInfo[playerid][pSQLID],reason,0); KickEx(id); } else if(Type == 2) { if(id == playerid) return SendClientMessage(playerid, -1, "Nu te poti bana singur!"); format(string, sizeof(string), "AdmCmd: %s was banned by %s, reason: %s", giveplayer, sendername, reason); SendClientMessageToAll(COLOR_LIGHTRED, string); new giveplayerid; if(giveplayerid == playerid) return SendClientMessage(playerid, COLOR_ERROR, "You cannot ban yourself."); PlayerInfo[id][pBanned] = 1; SendClientMessage(id,COLOR_LIGHTRED,"[BAN INFO]: Poti face o cerere de unban pe forumul nostru.Forumul este http://."); SendClientMessage(id,COLOR_LIGHTRED,"[HINT]: Te sfatuim sa faci o poza la aceste informatii,si sa o postezi cand faci cerere unban.Apasa F8 pentru a face poza."); format(str,sizeof(str),"UPDATE users SET `Banned`='1' WHERE `name`='%s'",giveplayer); mysql_query(SQL,str); new ip[25]; GetPlayerIp(id, ip, sizeof(ip)); Banlog(ip,PlayerInfo[id][pSQLID],PlayerInfo[playerid][pSQLID],reason,0); Ban(id); } return 1; } } else return SendClientMessage(playerid, COLOR_DS, "{FFFFCC}Error: Player not connected."); } else return SendClientMessage(playerid, COLOR_DS, AdminOnly); } return 1; } Poftim, trebuia sa adaugi if(id == playerid) return SendClientMessage(playerid, -1, "Nu te poti bana singur!");
  14. Arata-ne comanda /ban ca noi nu suntem cititori in stele sa vedem ce script ai tu.
×
×
  • 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.