Jump to content

xt3z0ne

Membru
  • Content Count

    193
  • Joined

  • Last visited

    Never

Community Reputation

0 Neutru

About xt3z0ne

  • Rank
    Membru avansat

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Edit:| Daca pun la public OnPlayerConnect(playerid) Sau public OnPlayerRequestClass(playerid, classid) Nu merge:| Dar daca pun la public OnPlayerSpawn(playerid) Si dau spawn mise misca camera :| Vreo rezolvare:|
  2. Dupa tut lui rimmon am facut
  3. Nick:Johnny Problema:Deci am am facut o mapa de skin pentru v2 si treaba este ca nu mise misca camera mi-o arata direct la skin Erori / warnings:! Lini/script:[pawn]SetupPlayerForClassSelection(playerid) { InterpolateCameraPos ( playerid , -4015.6001, -2386.5962, 246.3033 , -2693.4426, -2440.2266, 8.8858 , 16000 , CAMERA_MOVE ) ; SetPlayerInterior(playerid,14); SetWorldTime(00); SetPlayerPos(playerid,-2676.6602,-2440.6387,7.1165); SetPlayerFacingAngle(playerid, -270.0); SetPlayerCameraPos(playerid,-2693.4426, -2440.2266, 8.8858); SetPlayerCameraLookAt(playerid, -2692.4468, -2440.2456, 8.7407); }[/pawn] Ai incercat sa rezolvi singur ?: Am facut asa Camera de unde sa-n-ceapa [pawn] SetPlayerCameraPos(playerid, -4015.6001, -2386.5962, 246.3033); SetPlayerCameraLookAt(playerid, -4014.6038, -2386.6343, 246.1183); [/pawn] Camera pana unde [pawn] SetPlayerCameraPos(playerid, -2693.4426, -2440.2266, 8.8858); SetPlayerCameraLookAt(playerid, -2692.4468, -2440.2456, 8.7407); [/pawn] Si nimic:|
  4. Edit bun nam nici o eroare dar tot pot deschide poarta:|
  5. Nick:Johnny Problema:Pai am facut un sistem de c4 pentru server ca am nevoie la /blowgate si cand vreau sa cumpar c4 imi apare dialog-u dau buy si cand dau /plantc4 zice ca nu am c4:| Am pus totu in fs Erori / warnings:! Lini/script:Chiar nu am nici o eroare nmk.. Nu stiu ce naiba are... Ai incercat sa rezolvi singur ?:[pawn]#define FILTERSCRIPT /* ******************************************************************************** ***************************** By Johnny **************************************** ******************************************************************************** */ #include <a_samp> #include <sscanf2> #include <zcmd> //============================================================================== #define COLOR_ORANGE 0xF97804FF //============================================================================== new ASSHasC4[MAX_PLAYERS]; new ASSC4[MAX_PLAYERS]; new ASSC4Timer[MAX_PLAYERS]; new ASSPlantedC4[MAX_PLAYERS]; //============================================================================== forward C4Process(playerid); //============================================================================== public OnFilterScriptInit() { print("************************************************"); print("\n C4 Sistem By Johnny Apocalypse Super Stunt\n"); print("************************************************"); return 1; } //============================================================================== public OnFilterScriptExit() { return 1; } //============================================================================== public OnPlayerConnect(playerid) { ASSHasC4[playerid] = 0; ASSPlantedC4[playerid] = 0; return 1; } //============================================================================== public OnPlayerDisconnect(playerid, reason) { ASSHasC4[playerid] = 0; ASSPlantedC4[playerid] = 0; return 1; } //============================================================================== public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 999) { if(response) { if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid,COLOR_ORANGE,"[*] You Don't Have Required Money To Buy This"); GivePlayerMoney(playerid, -5000); ASSHasC4[playerid] = 1; } } return 1; } //============================================================================== public C4Process(playerid) { KillTimer(ASSC4Timer[playerid]); TogglePlayerControllable(playerid, 1); return 1; } //============================================================================== CMD:buyc4(playerid,params[]) { if(ASSHasC4[playerid] == 1) return SendClientMessage(playerid,COLOR_ORANGE,"[*] You Already Have C4, Use It Before Purchasing Again!"); ShowPlayerDialog(playerid,999,DIALOG_STYLE_MSGBOX,"C4 Buy","Are You Sure You Want To Buy C4?\nCosts: 5000$","Yes","No"); return 1; } //============================================================================== CMD:plantc4(playerid,params[]) { if(ASSPlantedC4[playerid] == 1) return SendClientMessage(playerid,COLOR_ORANGE,"[*] You Have Already Placed The C4."); if(ASSHasC4[playerid] == 0) return SendClientMessage(playerid,COLOR_ORANGE,"[*] You Donot Have C4, Purchase It From /buyc4!"); new Float:X,Float:Y,Float:Z; GetPlayerPos(playerid,X,Y,Z); ASSC4[playerid] = CreateObject(1654,X,Y,Z,1.5,270.0,0.0,0.0); ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 2000); ASSC4Timer[playerid] = SetTimerEx("C4Process",700,1,"u",playerid); TogglePlayerControllable(playerid, 0); GameTextForPlayer(playerid,"~r~You Successfully Placed C4!~n~/bb To Explode It!",4500,4); ASSPlantedC4[playerid] = 1; return 1; } //============================================================================== CMD:bb(playerid,params[]) { if(ASSHasC4[playerid] == 0) return SendClientMessage(playerid,COLOR_ORANGE,"[*] You Donot Have C4, Purchase It From /buyc4!"); if(ASSPlantedC4[playerid] == 0) return SendClientMessage(playerid,COLOR_ORANGE,"[*] You Have Not Planted The Bomb Yet"); new Float:X,Float:Y,Float:Z; GetObjectPos(ASSC4[playerid],X,Y,Z); CreateExplosion(X, Y, Z, 1, 10.0); DestroyObject(ASSC4[playerid]); ASSHasC4[playerid] = 0; ASSPlantedC4[playerid] = 0; return 1; } [/pawn]
  6. Uite ce am [pawn]stock IsPlayerClanMember(playerid, clan_name[]) { new player_name[MAX_PLAYER_NAME], CQuery[100]; GetPlayerName(playerid,player_name,sizeof(player_name)); format(CQuery, sizeof(CQuery), "SELECT `clanname` FROM `members` WHERE `playername` = '%s' AND `clanname` = '%s'", player_name, clan_name); Result = db_query( Database, CQuery ); new rows = db_num_rows( Result ); db_free_result(Result); if(!rows) return 0; else return ( 1 ); } //------------------------------------------------------------------------------ stock GetPlayerClan(playerid) { new player_name[MAX_PLAYER_NAME], CQuery[100], Field[30]; GetPlayerName(playerid,player_name,sizeof(player_name)); format(CQuery, sizeof(CQuery), "SELECT `clanname` FROM `members` WHERE `playername` = '%s'", player_name); Result = db_query(Database, CQuery); db_get_field_assoc( Result, "clanname", Field, 30 ); db_free_result(Result); return Field; }[/pawn]
  7. Da si tot eu i-am spus sa faca totu dela inceput:)
  8. Uite aici tutorialu lui gireada http://www.sa-mp.ro/forum/index.php?topic=24452.0
  9. Daca sti-am cum nu mai postam...
  10. Masina i simpla duar 3 obiecte Next a spus ca nu am facut eu infernus-u si iam spus cai fac alta masina [img width=500 height=375]http://www.imgz.ro/i/1401017785-sa-mp-101.png [pawn] vehi[playerid] = CreateVehicle(535, x,y,z,a, -1, -1, -1); ChangeVehicleColor(car, 0, 0); ass[0] = CreateObject(18649,0,0,-1000,0,0,0,100); ass[1] = CreateObject(18649,0,0,-1000,0,0,0,100); ass[2] = CreateObject(1023,0,0,-1000,0,0,0,100); AttachObjectToVehicle(ass[0], vehi[playerid], -1.085000,0.000000,-0.600000,0.000000,0.000000,0.000000); AttachObjectToVehicle(ass[1], vehi[playerid], 1.090000,0.000000,-0.600000,0.000000,0.000000,0.000000); AttachObjectToVehicle(ass[2], vehi[playerid], 0.000000,-2.400000,0.374999,0.000000,0.000000,0.000000); GameTextForPlayer(playerid,"~y~Special Vehicle~n~~b~Slamvan V1~n~~g~Spawned",3000,5); PutPlayerInVehicle(playerid,vehi[playerid],0);[/pawn] [img width=500 height=375]http://www.imgz.ro/i/1401017938-Masina2.bmp +1 Daca ti-a placut voi mai reveni si cu alte masinii.
×
×
  • 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.