Jump to content

monster010

Membru
  • Posts

    365
  • Joined

  • Last visited

Everything posted by monster010

  1. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if ((newkeys==KEY_FIRE )&&(IsPlayerInCopCar(playerid))&&(GetPlayerState(playerid)==PLAYER_STATE_DRIVER)) { MoveObject/SetObjectRot(obiect, x, y, z/rotx , roty , rotz); SetTimer("closelsdgate",2000,0); } return 1; } forward closelsdgate(); public closelsdgate() { MoveObject/SetObjectRot(obiect, x, y, z/rotx , roty , rotz); return 1; } ---------------------------------------------------------------------------------------- stock IsPlayerInCopCar(playerid) { #define MAX_COPCAR 10 new CopCar[] ={601,432,599,597,598,596,528,490,427,523}; new vehicleid = GetPlayerVehicleID(playerid); if(IsPlayerInVehicle(playerid,vehicleid)) { for(new i = 0; i < sizeof(CopCar); i++) { if(GetVehicleModel(vehicleid) == CopCar[i]) { return true; } } } return false; }
  2. Am mai vazut FS-ul asta nu e facut de tine :)
  3. Suuuper ! Bravo
  4. Hai ca astea sunt tari ;)
  5. Sunt atatea gamemoduri pe acest forum , iuta-te la topicul cu "Filter Script and Gamemodes"
  6. [glow=red,2,300]Despre Filter Script ![/glow] CreatesObjects: 4 . Lini: 105 . ---------------------------------------- [glow=red,2,300]Instrunctiuni[/glow] Cum sa deschizi gardul : Gardul este aflat la intrare in aeroport SF , tot ce aveti de facut este sa mergeti inainte ,fara sa claxonati sau sa scrieti o comanda ! ---------------------------------------------------------------------------------------------------------------------------- [glow=red,2,300]Paparazzi ! ( Screen Shot )[/glow] ScreenShot 1 : http://img86.imageshack.us/i/aero1.png/ , ScreenShot 2 : http://img255.imageshack.us/i/aero2.png/ ScreenShot 3 : http://img86.imageshack.us/i/aero3.png/ , ScreenShot 4 : http://img134.imageshack.us/i/aero4.png/ ------------------------------------------------------------------------------------------------------------------------------------ [glow=red,2,300]Sectiunea Download ![/glow] --------------------------------------------------------------------------------------------------- Sper sa va placa ! Mult Succes Cu Noul Vostru FS ( Filter Script ) . --------------------------------------------------------------------------------------------------- [glow=red,2,300]ACEST FILTER SCRIPT ESTE DOAR PENTRU UN MOD ROLE PLAY !!!![/glow] --------------------------------------------------------------------------------------------------- Probat Si Asigurat Pe Piata Neagra
  7. Este chiar frumos cum ai facut o treaba excelenta
  8. Am facut acest gamemode pentru experienta si distractie Detalii despre server ! Factiuni: LSPD , FBI , NG , Medic/Fireman , Mafia LCN ( mutata in LV ) , mafia Yakuza ( mutata si ea in LV ) , Primar (Mayor ) , Hitman , News Reporter , Taxi Company , School Instructor , Groove , Ballas , Vagos , Aztecas. Joburi secundare : Cele ca intotdeauna Multe obiecte , dar nu va faceti griji nu afecteaza sv-ul , bancomat la gara SF , comenzi de admini [levele de admin sunt 1,2,3,4,1337,1338] , Este un Gamemode frumos , delicat ------------------------------------------------------------------------------- Download Zone !!! ------------------------------------------------------------------------------- Credits - Mai multi, dar cel principal , PuNaNi(eu)
  9. M-am hotarat sa fac acest tutorial din doua motive : 1. M-au intrebat multi "cum sa fac o comanda cu SetObjectRot". 2. Vreu sa va ajut. Acuma ca stiti motivele se ne apucam de lucru. O sa va zic pasii care trebuie fie facuti pana la comanda : Pasul 1. Sa intram in MTA ( cel care il aveti voi ) creem un obiect (ex: gate , bariera , etc.) cand am terminat de facut dam save. Pasul 2. Intram pe un site unde sa convertam pentru PAWNO. Pasul 3. Am facut convertorul....o sa ne apara ceva de genu CreateObject([iD-ul obiectului],[Coordonatele x,y,z], [RotX, RotY, RotZ]); cea ce ne intereseaza sunt rotatiile X,Y,Z Pasul 4. Sa denumim obiectul : new objectPasul Pasul 5. Trecem crearea obiectului la public OnGameModeInit() , va fi asa object = CreateObject([iD-ul obiectului],[Coordonatele x,y,z], [RotX, RotY, RotZ ].( exemplu : CreateObject([iD-ul obiectului],[Coordonatele x,y,z], 0.0000, 0.0000, 60.5471); Acuma am sa va arat cum sa faceti comanda: la public OnPlayerCommandText(playerid, cmdtext[]) scrie comanda : if(!strcmp(cmdtext, "/comanda", true)) { if(PlayerInfo[playerid][pLeader] == [ID-ul factiunii] || PlayerInfo[playerid][pMember] == [ID-ul factiunii]// Daca vrem sa facem o comanda numai pentru o anumita factiune { [b] SetObjectRot([obiectul numit],rotX,rotY,rotZ);[/b] } else return SendClientMessage(playerid, COLOR_YELLOW,"Tu nu esti in [ce factiune doriti]."); return 1; } Daca vreti sa faceti ca se inchida automat faceti urmatorii pasi : 1-La forward , scrieti forward GateClose();[sau cum vreti voi] 2-Jos de tot scrieti public GateClose() { return 1; } Un exemplu public GateClose() { SetObjectRot([obiectul numit], rotX,rotY,rotZ); sau MoveObject([obiectul numit],x,y,z,[timpul de miscare]); return 1; } PS : Nu iutati sa adugati la comanda SetTimer
  10. Imi plac acele scari
  11. Oarecum
  12. Cool , seamana umpic cu mapa de la CS aceea deagle :P
  13. monster010

    Prison

    Bravo , tine-o tot asa !
  14. Ooo , multumim pentru munca depusa ;)
  15. Bravo...pentru un inceput este bine ;)
  16. monster010

    [MAP]Parkour City

    Foarte taree ! cand am plictisesc , "hop hop" )
  17. monster010

    Crash

    Daca ai streamer nu afecteaza mult sv-ul * dar sa nu ai 10000 de objecturi * Incearca sa mai scoti din masini .... daca iti mai da crach , incearca sa iti mai reintstalezi SA-MP-ul
  18. monster010

    Crash

    Pfff...pey da iti da errori la compilare?
  19. monster010

    coordonate.

    o ora? doamne....
  20. New Update - [glow=green,2,300]Acuma daca un cop si este intr-o masina de cop si claxoneaza din LV , nu se mai deschid barierele , trebuie sa claxonati doar langa bariera si poarta[/glow] ------------------------------------------------------------------------------------------------------- [glow=red,2,300]Despre Filter Script ![/glow] CreatesObjects: 5 . Lini: 70 . ---------------------------------------- [glow=red,2,300]Instrunctiuni[/glow] Cum sa deschizi bariera si gardul : Am facut ca acest FS sa se deschida bariera si gardul NUMAI cand un cop este in masina sa de politie , tot ce aveti de facut este sa urcati intr-o masina de politie si sa claxonezi ---------------------------------------------------------------------------------------------------------------------------- [glow=red,2,300]Paparazzi ! ( Screen Shot )[/glow] . ------------------------------------------------------------------------------------------------------------------------------------ [glow=red,2,300]Sectiunea Download ![/glow] --------------------------------------------------------------------------------------------------- Sper sa va placa ! Mult Succes Cu Noul Vostru FS ( Filter Script ) . --------------------------------------------------------------------------------------------------- [glow=red,2,300]ACEST FILTER SCRIPT ESTE DOAR PENTRU UN MOD ROLE PLAY !!!![/glow] La referitor la SS-uri ..... Created* ) --------------------------------------------------------------------------------------------------- Probat Si Asigurat Pe Piata Neagra
  21. Destul de bine incearca sa faci ceva mult mai "aratos"
  22. Destul de binisor:P
  23. Cauta la FiltersScript sunt destule
  24. Daca nu ai experienta in PHP poti cauta pe un client DC++ ( ex: Apex ) " Cursuri PHP "
  25. Trece sus de tot #pragma tabsize 0 Inlocuieste GivePlayerCash cu GivePlayerMoney Inlocuieste GetPlayerCash cu GetPlayerMoney ----------------------------------------------------------------------------- [color=blue]#pragma tabsize 0[/color] if(strcmp(cmd,"/buylicense",true)==0) { if(IsPlayerConnected(playerid)) { if(PlayerToPoint(25.0,playerid,1492.6129,1308.1138,1093.2937)) { new x_nr[256]; x_nr = strtok(cmdtext, idx); if(!strlen(x_nr)) { SendClientMessage(playerid, COLOR_DBLUE, "|__________________ Licenses __________________|"); SendClientMessage(playerid, COLOR_LIGHTBLUE, "USAGE: /buylicense [name]"); SendClientMessage(playerid, COLOR_YELLOW, "Available names: Driving (500$)"); SendClientMessage(playerid, COLOR_YELLOW, "Available names: Flying (8000$)"); SendClientMessage(playerid, COLOR_YELLOW, "Available names: Sailing (4500$)"); SendClientMessage(playerid, COLOR_YELLOW, "Available names: Fishing (2000$)"); SendClientMessage(playerid, COLOR_YELLOW, "Available names: Gun (15000$)"); SendClientMessage(playerid, COLOR_DBLUE, "|____________________________________________|"); return 1; } if(strcmp(x_nr,"Driving",true) == 0) { if(PlayerInfo[playerid][pCarLic] < 1) if(GetPlayerMoney(playerid) < 500) { format(string, sizeof(string), ".: Driving License costs $500, You don't have enough :."); SendClientMessage(playerid, COLOR_WHITE, string); return 1; } if(PlayerInfo[playerid][pCarLic] == 1) { format(string, sizeof(string), ".: You already have a Driving license :."); SendClientMessage(playerid, COLOR_WHITE, string); return 1; } PlayerInfo[playerid][pCarLic] = 1; SendClientMessage(playerid,COLOR_WHITE,".: You can now drive cars :."); GivePlayerMoney(playerid,-500); } else if(strcmp(x_nr,"Flying",true) == 0) { if(PlayerInfo[playerid][pFlyLic] < 1) if(GetPlayerMoney(playerid) < 8000) { format(string, sizeof(string), ".:Flying License costs $8000, You don't have enough :."); SendClientMessage(playerid, COLOR_WHITE, string); return 1; } if(PlayerInfo[playerid][pFlyLic] == 1) { format(string, sizeof(string), ".: You already have a Flying license :."); SendClientMessage(playerid, COLOR_WHITE, string); return 1; } PlayerInfo[playerid][pFlyLic] = 1; SendClientMessage(playerid,COLOR_WHITE,".: You can now drive Helys and Planes :."); GivePlayerMoney(playerid,-8000); } else if(strcmp(x_nr,"Sailing",true) == 0) { if(PlayerInfo[playerid][pBoatLic] < 1) if(GetPlayerMoney(playerid) < 4500) { format(string, sizeof(string), ".:Sailing License costs $4500, You don't have enough :."); SendClientMessage(playerid, COLOR_WHITE, string); return 1; } if(PlayerInfo[playerid][pBoatLic] == 1) { format(string, sizeof(string), ".: You already have a Sailing license :."); SendClientMessage(playerid, COLOR_WHITE, string); return 1; } PlayerInfo[playerid][pBoatLic] = 1; SendClientMessage(playerid,COLOR_WHITE,".: You can now drive Boats :."); GivePlayerMoney(playerid,-4500); } else if(strcmp(x_nr,"Fishing",true) == 0) { if(PlayerInfo[playerid][pFishLic] < 1) if(GetPlayerMoney(playerid) < 2000) { format(string, sizeof(string), ".:Fishing License costs $2000, You don't have enough :."); SendClientMessage(playerid, COLOR_WHITE, string); return 1; } if(PlayerInfo[playerid][pFishLic] == 1) { format(string, sizeof(string), ".: You already have a Fishing license :."); SendClientMessage(playerid, COLOR_WHITE, string); return 1; } PlayerInfo[playerid][pFishLic] = 1; SendClientMessage(playerid,COLOR_WHITE,".: You can now Fish Safe :."); GivePlayerMoney(playerid,-2000); } else if(strcmp(x_nr,"Gun",true) == 0) { if(PlayerInfo[playerid][pGunLic] < 1) if(GetPlayerMoney(playerid) < 15000) { format(string, sizeof(string), ".:Gun License costs $15000, You don't have enough :."); SendClientMessage(playerid, COLOR_WHITE, string); return 1; } if(PlayerInfo[playerid][pGunLic] == 1) { format(string, sizeof(string), ".: You already have a Gun license :."); SendClientMessage(playerid, COLOR_WHITE, string); return 1; } PlayerInfo[playerid][pGunLic] = 1; SendClientMessage(playerid,COLOR_WHITE,".: You can now have a Gun Safe :."); GivePlayerMoney(playerid,-15000); } } else { SendClientMessage(playerid, COLOR_GREY, " You are not in the City Hall !"); return 1; } }//not connected return 1; } PS: Daca nici asa nu merge da add la ID-ul meu de mess de la profil
×
×
  • 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.