StrypS
Membru-
Posts
45 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
News
Documentation
Everything posted by StrypS
-
Era de la string am folosit unul prea mic, daca nu era de la string varianta ta era buna ms ori cum
-
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; }
-
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,"","");
-
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
-
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
-
Caut Scripter de incredere si experimentat.
StrypS replied to CenzoR's topic in Caut servicii / partener / etc.
ai pm de la mine am 18 ani, sunt pe acest grup din 2014 si scriptez din 2012 -
Salut stie careva coordonatele/locul unde le gasescmde la spawn civil acolo unde este la gara, ca nu le gasesc in gm/ multumesc!
-
Sefule le am, dar nush dc nu sa postat cand am dat copi paste pe forum
-
In baza de date cauta stock - acolo arata toate masinile de la ds, dai pe una la edit si la money adaugi pretul dorit
-
Ne poti arata linia unde se introduce email-ul ?
-
Daca era de la xampp nu trebuia sa porneasca de loc
-
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
-
ai incerat sa verifici LorH ?
-
Caut un partener cu host samp, gm am eu la care lucrez de mai bine de 360 zile contact discord: StrypS#2134 pentru mai multe informatii
-
public OnPlayerConnect(playerid) asa trebuie sa ai in gm
-
conect discord me StrypS#2134
-
Tot nu merge, nu stiu ce are, dupa parerea mea totul este ok
-
Salut all, am si eu o problema cu progreesbar nu se afiseaza pe server cand ma loghez, am facut si un textdraw pentru progressbar care arata cam asa exemplu: Level 1 (2/6 RP), nici acesta nu este afisat o sa va dau toate coordonatele adaugate de mine, nu mai scriu unde sunt adaugate ca sa mai uitat prin el 2 scripteri si au zis ca sunt bine asezate si nu stiu dece nu merg new PlayerText:LevelTD[MAX_PLAYERS]; //textdraw new PlayerBar:LevelBar[MAX_PLAYERS]; //progressbar LevelTD[playerid] = CreatePlayerTextDraw(playerid, 554.666503, 124.874069, "Level: 5 (28/30 RP)"); PlayerTextDrawLetterSize(playerid, LevelTD[playerid], 0.190333, 1.077333); PlayerTextDrawAlignment(playerid, LevelTD[playerid], 2); PlayerTextDrawColor(playerid, LevelTD[playerid], -1); PlayerTextDrawSetShadow(playerid, LevelTD[playerid], 0); PlayerTextDrawSetOutline(playerid, LevelTD[playerid], 1); PlayerTextDrawBackgroundColor(playerid, LevelTD[playerid], 58); PlayerTextDrawFont(playerid, LevelTD[playerid], 2); PlayerTextDrawSetProportional(playerid, LevelTD[playerid], 1); PlayerTextDrawSetShadow(playerid, LevelTD[playerid], 0); UpdateProgressBar(playerid) { new string[64], expamount; if(PlayerInfo[playerid][pLevel] == 1 || PlayerInfo[playerid][pLevel] == 2 || PlayerInfo[playerid][pLevel] == 3 || PlayerInfo[playerid][pLevel] == 4) expamount = PlayerInfo[playerid][pLevel]*2; else if(PlayerInfo[playerid][pLevel] >= 5) expamount = PlayerInfo[playerid][pLevel]*levelexp; format(string, sizeof(string), "Level: %d (%d/%d RP)", PlayerInfo[playerid][pLevel], PlayerInfo[playerid][pExp], expamount); PlayerTextDrawSetString(playerid, LevelTD[playerid], string); SetPlayerProgressBarValue(playerid, LevelBar[playerid], PlayerInfo[playerid][pExp]); return 1; } ShowProgressBar(playerid) { expamount; if(PlayerInfo[playerid][pLevel] == 1 || PlayerInfo[playerid][pLevel] == 2 || PlayerInfo[playerid][pLevel] == 3 || PlayerInfo[playerid][pLevel] == 4) expamount = PlayerInfo[playerid][pLevel]*2; else if(PlayerInfo[playerid][pLevel] >= 5) expamount = PlayerInfo[playerid][pLevel]*levelexp; LevelBar[playerid] = CreatePlayerProgressBar(playerid, 505.00, 138.00, 99.50, 3.50, -213077640, 100.0); SetPlayerProgressBarMaxValue(playerid, LevelBar[playerid], expamount); SetPlayerProgressBarValue(playerid, LevelBar[playerid], PlayerInfo[playerid][pExp]); ShowPlayerProgressBar(playerid, LevelBar[playerid]); PlayerTextDrawShow(playerid, LevelTD[playerid]); UpdateProgressBar(playerid); return 1; } DestroyPlayerProgressBar(playerid, LevelBar[playerid]);
-
te ajut eu contact discord StrypS#2134
-
nu e bun amx, cpileazal din nou..
-
cauta-ma pe discord StrypS#2134 te ajut eu
-
Salut all, incerc sa fac in system de login pe textdraw dar ma inpiedic de ceva.. Este simplu arata Login Server Nick Name: [Nume] PASSWORD: CLICK totul merge bine, arata login server si nick name: [nick player], dar nu arata password click.. Astea sunt liniile pe care le-am adaugat: new Text:LoginPTD[2]; //global new PlayerText:LoginPTD1; //player select if(playertextid == LoginPTD1) { ShowPlayerDialog(playerid,DIALOG_LOGIN2,DIALOG_STYLE_PASSWORD,"SERVER: Login","Welcome to the Reggaeton-RPG Server.\n\nPlease enter your password below!", "Login", "Cancel"); } new string[144]; format(string, sizeof(string), "NICK NAME:: %s", GetName(playerid)); TextDrawSetString(LoginPTD[1], string); PlayerTextDrawSetString(playerid, LoginPTD1, "PASSWORD:_CLICK"); for(new i = 0; i < sizeof(LoginPTD); i++) TextDrawShowForPlayer(playerid, LoginPTD); PlayerTextDrawShow(playerid, LoginPTD1); LoginPTD1 = CreatePlayerTextDraw(playerid, 561.000000, 232.137481, "PASSWORD_CLICK"); PlayerTextDrawTextSize(playerid, LoginPTD1, 15.0, 15.0); PlayerTextDrawLetterSize(playerid, LoginPTD1, 0.398999, 0.895625); PlayerTextDrawAlignment(playerid, LoginPTD1, 2); PlayerTextDrawColor(playerid, LoginPTD1, -1271778561); PlayerTextDrawSetShadow(playerid, LoginPTD1, 0); PlayerTextDrawSetOutline(playerid, LoginPTD1, 0); PlayerTextDrawBackgroundColor(playerid, LoginPTD1, 255); PlayerTextDrawFont(playerid, LoginPTD1, 2); PlayerTextDrawSetProportional(playerid, LoginPTD1, 1); PlayerTextDrawSetShadow(playerid, LoginPTD1, 0); PlayerTextDrawSetSelectable(playerid, LoginPTD1, true); for(new i = 0; i < 2; i++) TextDrawHideForPlayer(playerid, LoginPTD); PlayerTextDrawShow(playerid, LoginPTD1); new string[144]; format(string, sizeof(string), "NICK NAME:: %s", GetName(playerid)); TextDrawSetString(LoginPTD[1], string); PlayerTextDrawSetString(playerid, LoginPTD1, "PASSWORD: CLICK"); LoginPTD[0] = TextDrawCreate(238.000000, 180.000000, "LOGIN REGGAETON SERVER"); TextDrawBackgroundColor(LoginPTD[0], 255); TextDrawAlignment(LoginPTD[0], 2); TextDrawLetterSize(LoginPTD[0], 0.320000, 2.000000); TextDrawColor(LoginPTD[0], 65535); TextDrawSetOutline(LoginPTD[0], 0); TextDrawSetProportional(LoginPTD[0], 1); TextDrawSetShadow(LoginPTD[0], 1); LoginPTD[1] = TextDrawCreate(237.000000, 200.000000, "NICK NAME: "); TextDrawBackgroundColor(LoginPTD[1], 255); TextDrawAlignment(LoginPTD[1], 2); TextDrawLetterSize(LoginPTD[1], 0.320000, 2.000000); TextDrawColor(LoginPTD[1], -936623615); TextDrawSetOutline(LoginPTD[1], 0); TextDrawSetProportional(LoginPTD[1], 1); TextDrawSetShadow(LoginPTD[1], 1); for(new i = 0; i < 2; i++) TextDrawHideForPlayer(playerid, LoginPTD); VAROG HELP, NU AM MAI SCRIS UNDE SUNT ADAUGATE CA SUNT CORECT ADAUGATE MA AJUTAT UN BAIAT BANDITUL, DAR V-AM ZIS NU ARATA PASSWORD: CLICK SA MA CONECTEZ HELPP!!!
-
nu merge frate, primesc multe warninguri, frate daca vr sa ma ajuti imi dai contu tau de discord si vb, daca mai ajuta cu asta ar fi super beton#