Jump to content

StrypS

Membru
  • Content Count

    47
  • Joined

  • Last visited

  • Days Won

    1

StrypS last won the day on October 31 2016

StrypS had the most liked content!

Community Reputation

2 Neutru

About StrypS

  • Rank
    Membru

Recent Profile Visitors

899 profile views
  1. Era de la string am folosit unul prea mic, daca nu era de la string varianta ta era buna ms ori cum
  2. YCMD:bonus(playerid, params[], help) { if(PlayerInfo[playerid][pLevel] > 1) return true; new string[43]; new money = PlayerInfo[playerid][pLevel] * 500000 + random(8000000); new lvlbonus = PlayerInfo[playerid][pLevel] * 3 + random(5); new ppbonus = PlayerInfo[playerid][pLevel] * 10 + random(50); SetPlayerScore(playerid, lvlbonus); PlayerInfo[playerid][pLevel] += lvlbonus; UpdateVar(playerid, "Level", 3); PlayerInfo[playerid][pPremiumPoints] += ppbonus; UpdateVar(playerid, "PremiumPoints", 3); GivePlayerCash(playerid, 1, money); format(string, sizeof(string), "Server Bonus Random: Ai primit %s PremiumPoints, Level %d si %i $.", ppbonus, lvlbonus, FormatNumber(money)); SCM(playerid, -1, string); return true; }
  3. case DIALOG_BUYVIPCAR: { if(response) { if(PlayerInfo[playerid][pPremiumPoints] <= 99) return ShowPlayerDialog(playerid, DIALOG_NOPP, DIALOG_STYLE_MSGBOX, "Not enough points", "You don't have enough premium points.\nNu ai suficiente puncte premium.", "Ok", ""); new idcar = SelectedCar[playerid]; new str2[256], strings[128], stringss[128]; if(PlayerInfo[playerid][pCarVIP][idcar] == 1) return SendClientMessage(playerid, COLOR_LIGHTGREEN3, "Acest vehicul este deja VIP."); if(PlayerInfo[playerid][pCarModel][idcar] != 411 && PlayerInfo[playerid][pCarModel][idcar] != 541 && PlayerInfo[playerid][pCarModel][idcar] != 560) return SendClientMessage(playerid, COLOR_LIGHTGREEN3, "Momentan doar vehiculele Infernus, Bullet si Sultan pot fi upgradate."); PlayerInfo[playerid][pPremiumPoints] -= 100; PlayerInfo[playerid][pCarVIP][idcar] = 1; SendClientMessage(playerid, COLOR_YELLOW, "You paid 100 premium points to make this vehicle VIP."); format(strings, sizeof(strings), "%s[user:%d] paid 100 premium points to make his car VIP.", PlayerInfo[playerid][pNormalName], PlayerInfo[playerid][pSQLID]); ABroadCast(COLOR_YELLOW, strings, 6); mysql_format(SQL,str2,sizeof(str2),"UPDATE users SET `PremiumPoints`='%d' WHERE `name`='%s'", PlayerInfo[playerid][pPremiumPoints], PlayerInfo[playerid][pNormalName]); mysql_tquery(SQL,str2,"",""); mysql_format(SQL,str2,sizeof(str2),"UPDATE cars SET `VIP`='1' WHERE `ID`='%d'", PlayerInfo[playerid][pCar][idcar]); mysql_tquery(SQL,str2,"",""); mysql_real_escape_string(strings, stringss); mysql_format(SQL,str2,sizeof(str2), "INSERT INTO `shop_logs` (`playerid`,`Message`) VALUES('%d','%s')", PlayerInfo[playerid][pSQLID], stringss); mysql_tquery(SQL,str2,"","");
  4. Salut lume am si eu o problema ce nu ii dau de cap nu se salveaza vip la masini cine doreste sa ma ajute discord: StrypS#3791
  5. Salut sa-mp caut un server "fantoma" pe care s-a scriptez am o experienta destul de buna in acest domeniu doresc ca acea persoana sa aiba deja un gm si jun host si cati va playeri si eu voi edita gm-ul cum doreste acea persoana CONTACT: StrypS#3791
  6. ai pm de la mine am 18 ani, sunt pe acest grup din 2014 si scriptez din 2012
  7. Salut stie careva coordonatele/locul unde le gasescmde la spawn civil acolo unde este la gara, ca nu le gasesc in gm/ multumesc!
  8. Sefule le am, dar nush dc nu sa postat cand am dat copi paste pe forum
  9. In baza de date cauta stock - acolo arata toate masinile de la ds, dai pe una la edit si la money adaugi pretul dorit
  10. Ne poti arata linia unde se introduce email-ul ?
  11. Daca era de la xampp nu trebuia sa porneasca de loc
  12. Hai salut, am si eu o problema nu se afiseaza PlayerTextDraw am incercat sa fac un DMV teoretic. am urmatoarele: new PlayerText:DmvPTD[3]; //definirea la LoadPTDS(playerid); DmvPTD[0] = CreatePlayerTextDraw(playerid, 323.500000, 149.533325, "~Y~Ce trebuie sa faci dupa ora 20:00?"); PlayerTextDrawLetterSize(playerid, DmvPTD[0], 0.207999, 1.360000); PlayerTextDrawAlignment(playerid, DmvPTD[0], 2); PlayerTextDrawColor(playerid, DmvPTD[0], -1); PlayerTextDrawSetShadow(playerid, DmvPTD[0], 0); PlayerTextDrawSetOutline(playerid, DmvPTD[0], 1); PlayerTextDrawBackgroundColor(playerid, DmvPTD[0], 255); PlayerTextDrawFont(playerid, DmvPTD[0], 2); PlayerTextDrawSetProportional(playerid, DmvPTD[0], 1); PlayerTextDrawSetShadow(playerid, DmvPTD[0], 0); DmvPTD[1] = CreatePlayerTextDraw(playerid, 326.500000, 160.133300, "~B~00:30"); PlayerTextDrawLetterSize(playerid, DmvPTD[1], 0.400000, 1.600000); PlayerTextDrawAlignment(playerid, DmvPTD[1], 2); PlayerTextDrawColor(playerid, DmvPTD[1], -1); PlayerTextDrawSetShadow(playerid, DmvPTD[1], 0); PlayerTextDrawSetOutline(playerid, DmvPTD[1], 1); PlayerTextDrawBackgroundColor(playerid, DmvPTD[1], 255); PlayerTextDrawFont(playerid, DmvPTD[1], 3); PlayerTextDrawSetProportional(playerid, DmvPTD[1], 1); PlayerTextDrawSetShadow(playerid, DmvPTD[1], 0); DmvPTD[2] = CreatePlayerTextDraw(playerid, 167.500000, 184.399993, "A. Trebuie sa aprind farurile.~n~~n~B. Trebuie sa inchid geamurile.~n~~n~C. Trebuie sa port ochelari"); PlayerTextDrawLetterSize(playerid, DmvPTD[2], 0.209999, 1.579110); PlayerTextDrawAlignment(playerid, DmvPTD[2], 1); PlayerTextDrawColor(playerid, DmvPTD[2], -1); PlayerTextDrawSetShadow(playerid, DmvPTD[2], 0); PlayerTextDrawSetOutline(playerid, DmvPTD[2], 1); PlayerTextDrawBackgroundColor(playerid, DmvPTD[2], 255); PlayerTextDrawFont(playerid, DmvPTD[2], 2); PlayerTextDrawSetProportional(playerid, DmvPTD[2], 1); PlayerTextDrawSetShadow(playerid, DmvPTD[2], 0); si noile functii si comanda: function FailDMV(playerid) { for(new i = 0; i < 4; i++) TextDrawHideForPlayer(playerid, DmvTD); for(new i = 0; i < 3; i++) PlayerTextDrawHide(playerid, DmvPTD); CancelSelectTextDraw(playerid); DMVStage[playerid] = 0; DMVTimer[playerid] = 0; SetPlayerPos(playerid, 1676.5024, -1854.1930, 13.5334); SetCameraBehindPlayer(playerid); SetPlayerVirtualWorld(playerid, 0); TogglePlayerControllable(playerid, true); return true; } function showDMV(playerid) { if(DMVStage[playerid] == 1) { for(new i = 0; i < 4; i++) TextDrawShowForPlayer(playerid, DmvTD); for(new i = 0; i < 3; i++) PlayerTextDrawShow(playerid, DmvPTD); SelectTextDraw(playerid, COLOR_GREEN); } DMVTimer[playerid] = 30; PlayerTextDrawShow(playerid, DmvPTD[1]); new question[64], answer[128]; switch(DMVStage[playerid]) { case 1: { format(question, sizeof question, "Ce trebuie sa faci dupa ora 20:00?"); format(answer, sizeof answer, "A. Trebuie sa aprind farurile.~n~~n~B. Trebuie sa inchid geamurile.~n~~n~C. Trebuie sa port ochelari."); } case 2: { format(question, sizeof question, "Ce primesti daca conduci pe contrasens?"); format(answer, sizeof answer, "A. Primesc un bonus.~n~~n~B. Primesc ban 3 zile.~n~~n~C. Primesc amenda de la un politist."); } case 3: { format(question, sizeof question, "Care este limta de viteza in oras?"); format(answer, sizeof answer, "A. Limita este de 80 KM/H.~n~~n~B. Limita este de 50 KM/H.~n~~n~C. Limita este de 100 KM/H."); } } PlayerTextDrawSetString(playerid, DmvPTD[0], question); PlayerTextDrawShow(playerid, DmvPTD[0]); PlayerTextDrawSetString(playerid, DmvPTD[2], answer); PlayerTextDrawShow(playerid, DmvPTD[2]); return true; } function failedQuestion(playerid) { switch(DMVStage[playerid]) { case 1: SendClientMessage(playerid, COLOR_RED, "Raspunsul corect era: A. Trebuie sa aprind farurile."); case 2: SendClientMessage(playerid, COLOR_RED, "Raspunsul corect era: C. Primesc amenda de la un politist."); case 3: SendClientMessage(playerid, COLOR_RED, "Raspunsul corect era: B. Limita de viteza este 50 KM/H."); } FailDMV(playerid); return true; } function passedQuestion(playerid) { DMVStage[playerid]++; showDMV(playerid); if(DMVStage[playerid] == 4) { FailDMV(playerid); SendClientMessage(playerid, COLOR_RED, "Felicitari ai trecut proba teoretica. Acum urmeaza traseul."); } return true; } CMD:examen(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_ERROR, "Nu esti logat."); if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_SERVER, "You can't use this command when you are in a car."); if(!PlayerToPoint(2.0, playerid, 2056.5339,-1911.0978,13.5500)) return SendClientMessage(playerid, COLOR_ERROR, "Nu te afli la DMV"); DMVStage[playerid] = 1; showDMV(playerid); SetPlayerPos(playerid, 1686.4027, -1869.5852, 26.2906); TogglePlayerControllable(playerid, false); SetPlayerCameraPos(playerid, 1686.4027, -1869.5852, 25.2906); SetPlayerCameraLookAt(playerid, 1685.8326, -1868.7650, 24.6206); SetPlayerVirtualWorld(playerid, playerid + 10); return true; } AM INCERCAT SI VARIANTA [MAX_PLAYERS] SI [playerid] dar fara folos
  13. ai incerat sa verifici LorH ?
×
×
  • Create New...

Important Information

This site uses cookies. By continuing browsing, you agree to the use of this information. For more details, see Terms of Use and Privacy Policy.