-
Posts
716 -
Joined
-
Last visited
Content Type
Profiles
Forums
News
Documentation
Everything posted by Diabolik
-
Incearca: Comanda:/fill if(strcmp(cmd, "/fill", true) == 0) { if(IsPlayerConnected(playerid)) { if(IsAtGasStation(playerid)) { TogglePlayerControllable(playerid, 0); format(string,sizeof(string),"Fuel: Se alimenteaza..."); TextDrawSetString(vFuel[playerid], string); TextDrawShowForPlayer(playerid, vFuel[playerid]); SetTimer("Fillup",RefuelWait,0); Refueling[playerid] = 1; } else { SendClientMessage(playerid,COLOR_GREY,"{30a030}[saveG]: {ffffff}Ne pare rau, dar nu te afli intr-o Statie de Gas."); } } return 1; } Comanda: /fillcar if(strcmp(cmd, "/fillcar", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pFuel] > 0) { if(Gas[gLastCar[playerid]] < 81) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "» Felicitari, ai alimentat Vehiculul cu 20 Fuel."); Gas[gLastCar[playerid]] += 20; PlayerInfo[playerid][pFuel] = 0; } else { SendClientMessage(playerid, COLOR_GREY, "» Vehiculul tau are combustibil necesar."); } } else { SendClientMessage(playerid, COLOR_GREY, "» Ne pare rau, dar nu aveti Fuel in Canistra."); } } return 1; }
-
Sterge comenzile sellbiz si buybiz si adauga comenzile astea: if(strcmp(cmd, "/sellbiz", true) == 0) { if(IsPlayerConnected(playerid)) { GetPlayerName(playerid, playername, sizeof(playername)); if(PlayerInfo[playerid][pPbiskey] == 255) { SendClientMessage(playerid, COLOR_WHITE, "{30a030}[saveG]: {ffffff}Ne pare rau, dar nu detineti un Business"); return 1; } if(PlayerInfo[playerid][pBiz] == 0) { SendClientMessage(playerid, COLOR_GRAD1, "{30a030}[saveG]: {ffffff}Ne pare rau, dar trebuie sa fie un Admin de fata cand vindeti un Business."); return 1; } if(PlayerInfo[playerid][pMarried] > 0) { SendClientMessage(playerid, COLOR_GREY, "{30a030}[saveG]: {ffffff}Ne pare rau, dar sunteti Casatorit asa ca nu puteti vinde acest Business."); return 1; } if(PlayerInfo[playerid][pPbiskey] >= 100 && strcmp(playername, SBizzInfo[PlayerInfo[playerid][pPbiskey]-100][sbOwner], true) == 0) { Delete3DTextLabel(Text3D:SBizz3D); new bouse = PlayerInfo[playerid][pPbiskey]-100; GivePlayerMoney(playerid, 1000); SBizzInfo[bouse][sbLocked] = 1; SBizzInfo[bouse][sbOwned] = 0; SBizzInfo[bouse][sbBuyPrice] = 1000; GetPlayerName(playerid, sendername, sizeof(sendername)); strmid(SBizzInfo[bouse][sbOwner], "The State", 0, strlen("The State"), 255); strmid(SBizzInfo[bouse][sbExtortion], "No-one", 0, strlen("No-one"), 255); ConsumingMoney[playerid] = 1; PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); format(string, sizeof(string), "~w~Ati vandut business-ul ~n~~g~1000"); GameTextForPlayer(playerid, string, 10000, 3); SBizzInfo[bouse][sbTill] = 0; PlayerInfo[playerid][pPbiskey] = 255; Delete3DTextLabel(Text3D:SBizz3D); OnPropUpdate(); OnPlayerUpdate(playerid); PlayerInfo[playerid][pBiz] = 0; return 1; } if(strcmp(playername, BizzInfo[PlayerInfo[playerid][pPbiskey]][bOwner], true) == 0) { Delete3DTextLabel(Text3D:Bizz3D); new bouse = PlayerInfo[playerid][pPbiskey]; BizzInfo[bouse][bLocked] = 1; BizzInfo[bouse][bOwned] = 0; BizzInfo[bouse][bBuyPrice] = 1000; GetPlayerName(playerid, sendername, sizeof(sendername)); strmid(BizzInfo[bouse][bOwner], "The State", 0, strlen("The State"), 255); strmid(BizzInfo[bouse][bExtortion], "No-one", 0, strlen("No-one"), 255); ConsumingMoney[playerid] = 1; GivePlayerMoney(playerid, 1000); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); format(string, sizeof(string), "~w~Ati vandut business-ul ~n~~g~1000"); GameTextForPlayer(playerid, string, 10000, 3); BizzInfo[bouse][bTill] = 0; PlayerInfo[playerid][pPbiskey] = 255; Delete3DTextLabel(Text3D:Bizz3D); OnPropUpdate(); OnPlayerUpdate(playerid); PlayerInfo[playerid][pBiz] = 0; return 1; } else { SendClientMessage(playerid, COLOR_WHITE, "{30a030}[saveG]: {ffffff}Ne pare rau, dar nu detineti un Business."); } } return 1; } if(strcmp(cmd, "/buybiz", true) == 0) { if(IsPlayerConnected(playerid)) { new Float:oldposx, Float:oldposy, Float:oldposz; GetPlayerName(playerid, playername, sizeof(playername)); GetPlayerPos(playerid, oldposx, oldposy, oldposz); if(PlayerInfo[playerid][pPbiskey] != 255) { SendClientMessage(playerid, COLOR_WHITE, "{30a030}[saveG]: {ffffff}Ne pare rau, dar detii deja un Business, scrie /sellbiz pentru al Vinde."); return 1; } for(new b = 0; b < sizeof(SBizzInfo); b++) { if(PlayerToPoint(2.0, playerid, SBizzInfo[b][sbEntranceX], SBizzInfo[b][sbEntranceY], SBizzInfo[b][sbEntranceZ]) && SBizzInfo[b][sbOwned] == 0) { if(PlayerInfo[playerid][pLevel] < SBizzInfo[b][sbLevelNeeded]) { format(string, sizeof(string), "{30a030}[saveG]: {ffffff}Ne pare rau, dai ai nevoie de Level %d pentru a cumpara acest Business.",SBizzInfo[b][sbLevelNeeded]); SendClientMessage(playerid, COLOR_GRAD5, string); return 1; } if(GetPlayerMoney(playerid) > SBizzInfo[b][sbBuyPrice]) { Delete3DTextLabel(Text3D:SBizz3D); PlayerInfo[playerid][pPbiskey] = b+100; SBizzInfo[b][sbOwned] = 1; GetPlayerName(playerid, sendername, sizeof(sendername)); strmid(SBizzInfo[b][sbOwner], sendername, 0, strlen(sendername), 255); GivePlayerMoney(playerid,-SBizzInfo[b][sbBuyPrice]); PlayerPlayMusic(playerid); SendClientMessage(playerid, COLOR_WHITE, "{30a030}[saveG]: {ffffff}Felicitari, aceast Business va apartine."); SendClientMessage(playerid, COLOR_WHITE, "{30a030}[saveG]: {ffffff}Scrie /businesshelp, pentru a vedea comenzile disponibile."); Delete3DTextLabel(Text3D:SBizz3D); DateProp(playerid); OnPropUpdate(); OnPlayerUpdate(playerid); return 1; } else { SendClientMessage(playerid, COLOR_WHITE, "{30a030}[saveG]: {ffffff}Ne pare rau, dar nu ai suficienti bani pentru a cumpara aceat Business."); return 1; } } } for(new b = 0; b < sizeof(BizzInfo); b++) { if(PlayerToPoint(2.0, playerid, BizzInfo[b][bEntranceX], BizzInfo[b][bEntranceY], BizzInfo[b][bEntranceZ]) && BizzInfo[b][bOwned] == 0) { if(PlayerInfo[playerid][pLevel] < BizzInfo[b][bLevelNeeded]) { format(string, sizeof(string), "{30a030}[saveG]: {ffffff}Ne pare rau, dai ai nevoie de Level %d pentru a cumpara acest Business.",BizzInfo[b][bLevelNeeded]); SendClientMessage(playerid, COLOR_GRAD5, string); return 1; } if(GetPlayerMoney(playerid) > BizzInfo[b][bBuyPrice]) { Delete3DTextLabel(Text3D:Bizz3D); PlayerInfo[playerid][pPbiskey] = b; BizzInfo[b][bOwned] = 1; GetPlayerName(playerid, sendername, sizeof(sendername)); strmid(BizzInfo[b][bOwner], sendername, 0, strlen(sendername), 255); GivePlayerMoney(playerid,-BizzInfo[b][bBuyPrice]); PlayerPlayMusic(playerid); SetPlayerInterior(playerid,BizzInfo[b][bInterior]); PlayerInfo[playerid][pInt] = BizzInfo[b][bInterior]; SetPlayerPos(playerid,BizzInfo[b][bExitX],BizzInfo[b][bExitY],BizzInfo[b][bExitZ]); GameTextForPlayer(playerid, "~w~Bun venit ~n~ ~w~Apasa ~g~F ~w~sau ~g~Enter ~w~pentru a iesi", 5000, 3); PlayerInfo[playerid][pInt] = BizzInfo[b][bInterior]; PlayerInfo[playerid][pLocal] = b ; SendClientMessage(playerid, COLOR_WHITE, "{30a030}[saveG]: {ffffff}Felicitari, aceast Business va apartine."); SendClientMessage(playerid, COLOR_WHITE, "{30a030}[saveG]: {ffffff}Scrie /businesshelp, pentru a vedea comenzile disponibile."); Delete3DTextLabel(Text3D:Bizz3D); DateProp(playerid); OnPropUpdate(); OnPlayerUpdate(playerid); return 1; } else { SendClientMessage(playerid, COLOR_WHITE, "{30a030}[saveG]: {ffffff}Ne pare rau, dar nu ai suficienti bani pentru a cumpara aceat Business."); return 1; } } } } return 1; }
-
Foarte bun scriptul dar se poate lua si ca un cod pentru server pentru ca iti da viata si arme etc cat am citit eu.
-
Pe serverele de tip HRP nu poti sa mergi cu barca , sa cumperi arme, sa pilotezi avionul si sa iti cumperi arme fara aceste licente+daca ai la tine arme si te prinda politia poate sa iti dea amenda.
-
Descriere: Acest script l-am creat pentru a luat licentele : fishing , sailing ,weapon si flying de la primarie contra unei sume pusa de mine. Contine si urmatoarele comenzi: - /buylicense - pentru a intra in meniu cu licente - /sailing - a cumpara licenta de mers cu barca - /fishing - a cumpara licenta de pescuit - /flying - a cumpara licenta de pilot - /weapon - a cumpara licenta de port-arma - /license - pentru a vedea daca ai licentele Poze: [img width=500 height=375] [img width=500 height=375] Download: Amx: [download]http://www.solidfiles.com/d/aeb739bae2/[/download] Pwm: [download]http://www.solidfiles.com/d/a95190c341/[/download]
-
Bravo, foarte folositor acest script 5/5
-
Da eu sunt RuSke.
-
Este foarte de parte fata de cel a lui Darky , uitete in script.
-
Descriere: Este un sistem CellPhone care va merge doar pe servere de tip GF sau daca ai sv pe ZCMD. Comenzile de utilizare sunt: SINTAXA: /cellphonehelp EXPLICATIE: Aceasta comanda iti ofera ajutor despre telefon. SINTAXA: /call [playerid] EXPLICATIE: Cu aceasta comanda, poti suna un jucator. SINTAXA: /pickup EXPLICATIE: Cu aceasta comanda, poti raspunde la apelul altui jucator. SINTAXA: /hangup EXPLICATIE: Cu aceasta comanda, poti inchide o conversatie/un apel. SINTAXA: /sms EXPLICATIE: Cu aceasta comanda, poti trimite sms-uri la playeri. Download: Amx: [download]http://www.solidfiles.com/d/f26c46baf0/[/download] Pwm: [download]http://www.solidfiles.com/d/c0c890d3ce/[/download]
-
Frumoasa mapa dar se putea si mai bine.
-
Bravo 4/5 pentru prima mapa a ta.
-
4/5 ai obiecte puse aiurea pe undeva.
-
Descriere: Am observat ca multe serverele la comanda /rules scrie: Intrati pe server sa cititi regulamentul si m-am gandit sa fac o comanda prin care sa citesti regulamentul direct de pe server. Poze: [img width=500 height=375] [img width=500 height=375] [img width=500 height=375] [img width=500 height=375] [img width=500 height=375] [img width=500 height=375] Download: amx: [download]http://www.solidfiles.com/d/a3e2103f61/[/download] pwm:[download] http://www.solidfiles.com/d/f2cc88f7ed/[/download] Atentie!! Trebuie sa ai serverul pus pe ZCMD ca sa iti mearga comanda.
-
Frumos Gireada inca un lucru facut de tine pentru a ajuta playeri incepatori.+1
-
Frumos si foarte folositor pentru serverele de tip RP. +1
-
Bravo Darky , chiar aveam nevoie de comenziile astea .
-
Foarte bun fs pentru serverele de stunt , felicitari Gireada continua tot asa.
-
Frumos system Gireada , devi din ce in ce mai bun in scripter.
-
Personal Vehicle System v5(update) 16.04.2013
Diabolik replied to Gireada's topic in Filterscript-uri
Foarte bun sistemul de masini personale , cautam de mult asa ceva , multumesc. -
Nu sunt comenzi acestea , sunt niste functii , daca le ai e bine .
-
Ia vezi daca ai in server.cfg la linia gamemode scris bine numele gamemodului sau adauga pluginurile 0.3x si o sa iti mearga.
-
Comanda este buna , la mine pe server merge cum trebuie.Ai cumva adaugat settime sau FixHour in gamemode?
-
Frumoasa pama ,, bravo 10/10
-
Incearca asta: if(strcmp(cmd, "/etilotest", true) == 0 { if(IsPlayerConnected(playerid)) { if (IsACop(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /etilotest [playerid/PartOfName]"); return 1; } giveplayerid = ReturnUser(tmp); new level = GetPlayerDrunkLevel(giveplayerid); GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if(GetDistanceBetweenPlayers(playerid,giveplayerid) < 3) { if(level > 600) { format(string, sizeof(string), "* %s grabs their breathalyzer and puts the tube into %s's mouth.", sendername ,giveplayer); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); SendClientMessage(playerid, COLOR_LIGHTBLUE, "** Breathalyzer Result: Intoxicated **"); GameTextForPlayer(playerid,"~w~Acest player este~n~~r~beat!", 8000, 1); return 1; } else { format(string, sizeof(string), "* %s grabs their breathalyzer and puts the tube into %s's mouth.", sendername ,giveplayer); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); SendClientMessage(playerid, COLOR_LIGHTBLUE, "** Breathalyzer Result: Not Intoxicated **"); GameTextForPlayer(playerid,"~w~Acest player nu este~n~~r~beat!", 8000, 1); return 1; } } } } else { SendClientMessage(playerid, COLOR_GRAD1, " Acest player este offline !"); } } else { SendClientMessage(playerid, COLOR_GRAD1, " Trebuie sa fii politist pentru a folosi comanda! (Cops Only)"); } } return 1; }