Jump to content

MrAndrei

Membru
  • Posts

    185
  • Joined

  • Last visited

2 Followers

About MrAndrei

  • Birthday 08/04/1998

Profile Information

  • Location
    Calarasi
  • Interests
    Scripting...
  • In-game Name
    CudiBoYRobY
  • Level of knowledge
    Începător

Contact Methods

Recent Profile Visitors

1,395 profile views

MrAndrei's Achievements

Community Regular

Community Regular (8/14)

  • First Post
  • Collaborator
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

4

Reputation

1

Community Answers

  1. stock Carspeed(playerid,mode = 1) { new Float:Velocity [3]; GetVehicleVelocity ( GetPlayerVehicleID ( playerid ) , Velocity [ 0 ] , Velocity [ 1 ] , Velocity [ 2 ] ) ; return IsPlayerInAnyVehicle ( playerid ) ? floatround ( ( ( floatsqroot ( ( ( Velocity [ 0 ] * Velocity [ 0 ] ) + ( Velocity [ 1 ] * Velocity [ 1 ] ) + ( Velocity [ 2 ] * Velocity [ 2 ] ) ) ) * ( !mode ? 105.0 : 170.0 ) ) ) * 1 ) : 0; }
  2. mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET `Pin`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pPin], PlayerInfo[playerid][pNormalName]); mysql_tquery(SQL,var,"","");
  3. Problema intalnita (descriere): Salut Am facut sistemul de "startradar" pentru departamentul LSPD, insa, cand trec pe langa un PD cu radar on nu se intampla nimic. Ero(area / rile) / warning-(ul / urile): -Liniile de cod / sursa / script-ul(obligatoriu): CMD:startradar(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first."); if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pMember] != 1) return SCM(playerid,COLOR_WHITE,"{FFB870}You are not a officer."); if(OnDuty[playerid] != 1) return SendClientMessage(playerid,COLOR_WHITE, "{FFB870}You are not on Duty."); new tmpcar = GetPlayerVehicleID(playerid), ccar = IsPlayerInAnyVehicle(playerid); if(ccar && IsACopCar(tmpcar) || ccar && IsANgCar(tmpcar) || ccar && IsAFbiCar(tmpcar)) { if(Radaron[playerid] == 1) return SCM(playerid,COLOR_WHITE,"{FFB870}You have active radar."); new viteza,string[128]; if(sscanf(params, "d",viteza)) return SCM(playerid,COLOR_WHITE,"{B8DBFF}Syntax: /startradar <Speed Limit>"); if(viteza > 200 || viteza < 40) return SCM(playerid,COLOR_WHITE,"{FFB870}Invalid speed limit(200-40)."); Radaron[playerid] = 1; Radarlimit[playerid] = viteza; TogglePlayerControllable(playerid, 0); format(string,sizeof(string),"{FFFF00}You have activated the radar, speed limit is: %d KM/H.",viteza); SCM(playerid,COLOR_WHITE,string); return 1; } else return SCM(playerid,COLOR_WHITE,"{FFB870}You are not in a cop car."); } return 1; } CMD:startradar(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first."); if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pMember] != 1) return SCM(playerid,COLOR_WHITE,"{FFB870}You are not a officer."); if(OnDuty[playerid] != 1) return SendClientMessage(playerid,COLOR_WHITE, "{FFB870}You are not on Duty."); new tmpcar = GetPlayerVehicleID(playerid), ccar = IsPlayerInAnyVehicle(playerid); if(ccar && IsACopCar(tmpcar) || ccar && IsANgCar(tmpcar) || ccar && IsAFbiCar(tmpcar)) { if(Radaron[playerid] == 1) return SCM(playerid,COLOR_WHITE,"{FFB870}You have active radar."); new viteza,string[128]; if(sscanf(params, "d",viteza)) return SCM(playerid,COLOR_WHITE,"{B8DBFF}Syntax: /startradar <Speed Limit>"); if(viteza > 200 || viteza < 40) return SCM(playerid,COLOR_WHITE,"{FFB870}Invalid speed limit(200-40)."); Radaron[playerid] = 1; Radarlimit[playerid] = viteza; TogglePlayerControllable(playerid, 0); format(string,sizeof(string),"{FFFF00}You have activated the radar, speed limit is: %d KM/H.",viteza); SCM(playerid,COLOR_WHITE,string); return 1; } else return SCM(playerid,COLOR_WHITE,"{FFB870}You are not in a cop car."); } return 1; } public CustomPickups() { new Float:oldposx, Float:oldposy, Float:oldposz; new string[564]; foreach(Player,i) { GetPlayerPos(i, oldposx, oldposy, oldposz); if(Radaron[i] == 1) { foreach(Player, o) { if(IsPlayerInRangeOfPoint(o, 30.0, oldposx, oldposy, oldposz) && GetPlayerState(o) == PLAYER_STATE_DRIVER && OnDuty[o] == 0) { new viteza = Carspeed(o); if(viteza > Radarlimit[i]) { new nameradar[25],nameradar1[25]; GetPlayerName(o,nameradar,sizeof(nameradar)); GetPlayerName(i,nameradar1,sizeof(nameradar1)); format(string, sizeof(string), "{f03337}%s[ID:%d] is driving with %d km/h, Location: %s, Radar Limit: %d km/h!", nameradar,o,viteza,GetPlayerZone(o),Radarlimit[i]); SCM(i,COLOR_WHITE,string); format(string, sizeof(string), "{f03337}You were caught by %s radar with %d km/h, Radar Limit: %d km/h.",nameradar1,viteza,Radarlimit[i]); SCM(o,COLOR_WHITE,string); return 1; } } } } } return 1; } Imagini / Video (optional): -Ati incercat sa rezolvati singur?: Da,dar nu am reusit.
  4. Problema intalnita (descriere): Nu se salveaza codul Pin.Ero(area / rile) / warning-(ul / urile): Am facut un sistem de Pin, insa, dupa ce il introduc, il adaug, dar dupa relog, codul introdus nu se salveaza. Liniile de cod / sursa / script-ul(obligatoriu): La OnPlayerLogin: new string[256]; PlayerInfo[playerid][pPin] = cache_get_field_content(0, "Pin", string); format(PlayerInfo[playerid][pPin], 5, string); new string[256]; PlayerInfo[playerid][pPin] = cache_get_field_content(0, "Pin", string); format(PlayerInfo[playerid][pPin], 5, string); Imagini / Video (optional): -Ati incercat sa rezolvati singur?: Da, dar nu am reusit. Am incercat si cu verchant(4). La verchant(10), se adauga numere random, 49,50,51 etc etc.
  5. In loc de IsInHq foloseseste PlayerToPoint(60.0, xx.x, yy.y,zz.z)
  6. Salutare. Tocmai mi-am incercat cunostintele mele in cadrul unui sistem simplu si anume un sistem de teleport pentru a ajuta adminii in organizarea eventelor. Nu vreau sa aud cuvinte de genul: Prea usor, incearca ceva mai greu sau altele. Incerc sa imi creez sisteme unice, simple si eficiente. Pana in momentul de fata nu am copiat niciun sistem de pe vreun server. Daca este ceva asemanator, da, dar identic sau pe aceeasi tema nu. Mai jos aveti un video: Astept parerile voastre. Scuzati lagul, mi s-a bulit calculatorul si am lucrat de pe un laptop antic.
  7. Foloseste functia SetTimerEx.
  8. Problema intalnita (descriere): Fus orar invers. Cand e zi e noapte si cand e noapte e i ( Nu sunt sigur daca noaptea e zi , nu am testat ). Acest "bug" l-am raportat la cei de la host, am crezut ca e de la ei, insa au spus ca e din gamemode-ul meu. Cum o pot rezolva?Ero(area / rile) / warning-(ul / urile):-Liniile de cod / sursa / script-ul(obligatoriu): -Imagini / Video (optional): -Ati incercat sa rezolvati singur?: Da, dar nu am reusit.
  9. Majoritatea sistemelor de pe server sunt create de la 0 si din inspiratie proprie.
  10. Trade System Salut! O să vă prezint în două poze cum arată sistemul de trade de pe serverul Red-Generation RPG. Sistemul este unul complex (textdraw-urile sunt create PerPlayer - identificându-se butonul de EXIT), se pot adăuga 4 Iteme. Tranzacțile sunt stocate în baza de date (toate detalile afișându-se). Tranzacția se termină după 15 secunde după ce jucătorul cu care faci trade a confirmat oferta. Sistemul este tradus în limba română și în limba engleză (depinde de /language). Sistemul este creat de la 0 de către JustRed, fondatorul comunitatii Red-Generation.
  11. Descriere tutorial: Am urmarit tutorialul lui Maurice cu Dealershipul insa ma incurc in partea finala a acestuia si mai precis la salvarea masinii pe slot. Am incercat multe metode, insa, nu am reusit. As dori un tutorial din care sa inteleg cum sa salvez masina pe slot si ceea ce mai trebuie. Va multumesc.
×
×
  • 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.