Jump to content

Can I have some Help over her


Haze

Recommended Posts

Posted

Hello EveryOne I so a lot of scripts that it make a Hydras For 1 Team Example Army but i didnt Like it when i Create anthor Section is Navy And i dont want the Navy to Go to the Air Force Hydras so i Try this script to make Navy And Air Force have they own Hydra with out sharing the some i tested the script but i didnt Found the Hydra Plz Can Someone Help me And Thank you :)

ArmyVehicles = local vehicle = createVehicle ( 520, 302.74, 1818.85, 17.64) 
ArmyTeam = { ["Army"]=true } 
  
function ArmyenterVehicle ( player, seat, jacked ) 
local team = getPlayerTeam(player) 
    if ( ArmyVehicles[getElementModel ( source )] ) and ( not ArmyTeam[getTeamName ( team )] ) and ( seat == 0 ) then 
        removePedFromVehicle ( player )--force the player out of the vehicle 
        outputChatBox ( "You aren't an Army Member , you mayn't drive this.", player ) --and tell the player why 
    end 
end 
addEventHandler ( "onVehicleStartEnter", getRootElement(), copenterVehicle ) 

Ingame nick: FWC>Haze

Server I play: FWCentral

Job: FWCentral Developer

Website: fwcentral.net

276473_205836092791903_297368_n.jpg

default.png?k=0e33bf78535ebcd5e63c863cd33516c6&10966802

default.png?k=557262ebc578ba0f5fbb0b9176e6820e&10966803

Posted

What ? xD it dont show up ?

try this

ArmyVehicles = createVehicle ( 520, 302.74, 1818.85, 17.64) 
ArmyTeam = { ["Army"]=true } 
  
function ArmyenterVehicle ( player, seat, jacked ) 
local team = getPlayerTeam(player) 
    if ( ArmyVehicles[getElementModel ( source )] ) and ( not ArmyTeam[getTeamName ( team )] ) and ( seat == 0 ) then 
        removePedFromVehicle ( player )--force the player out of the vehicle 
        outputChatBox ( "You aren't an Army Member , you mayn't drive this.", player ) --and tell the player why 
    end 
end 
addEventHandler ( "onVehicleStartEnter", getRootElement(), copenterVehicle ) 

n-560x95_E60303_FFFFFF_030303_FF0303.png
Posted

Thx ALT i know this Name SAES RPG no ??

Ingame nick: FWC>Haze

Server I play: FWCentral

Job: FWCentral Developer

Website: fwcentral.net

276473_205836092791903_297368_n.jpg

default.png?k=0e33bf78535ebcd5e63c863cd33516c6&10966802

default.png?k=557262ebc578ba0f5fbb0b9176e6820e&10966803

Posted

OK DUD Listen The Hydra is Spawnd at his Place it work but when i change my Team to Police or Crimnel i can be Able to Drive the Hydra dud i dont Know why can you Help plz

Ingame nick: FWC>Haze

Server I play: FWCentral

Job: FWCentral Developer

Website: fwcentral.net

276473_205836092791903_297368_n.jpg

default.png?k=0e33bf78535ebcd5e63c863cd33516c6&10966802

default.png?k=557262ebc578ba0f5fbb0b9176e6820e&10966803

Posted

oh ok

Try this

ArmyVehicles = local vehicle = createVehicle ( 520, 302.74, 1818.85, 17.64) 
ArmyTeam = { ["Army"]=true } 
  
function ArmyenterVehicle ( player, seat, jacked ) 
local team = getPlayerTeam(player) 
    if ( ArmyVehicles[getElementModel ( source )] ) and ( not ArmyTeam[getTeamName ( team )] ) and ( seat == 0 ) then 
        removePedFromVehicle ( player )--force the player out of the vehicle 
        outputChatBox ( "You aren't an Army Member , you mayn't drive this.", player ) --and tell the player why 
    end 
end 
addEventHandler ( "onVehicleStartEnter", getRootElement(), ArmyenterVehicle ) 

n-560x95_E60303_FFFFFF_030303_FF0303.png
Posted

kimmis9 you'r function name is " ArmyenterVehicle" and on addEventHandler is " copenterVehicle" and in exchange of removePedFromVehicle use cancelEvent()

ArmyVehicles = createVehicle ( 520, 302.74, 1818.85, 17.64) 
ArmyTeam = { ["Army"]=true } 
  
function ArmyenterVehicle ( player, seat, jacked ) 
local team = getPlayerTeam(player) 
    if ( ArmyVehicles[getElementModel ( source )] ) and ( not ArmyTeam[getTeamName ( team )] ) and ( seat == 0 ) then 
        cancelEvent() 
        outputChatBox ( "You aren't an Army Member , you mayn't drive this.", player ) --and tell the player why 
    end 
end 
addEventHandler ( "onVehicleStartEnter", getRootElement(), ArmyenterVehicle ) 

Ingame Name : |DGT|Puma

DGT Clan Server 24/7 Owner/Scripter

MultiGameMode in progress :

n-560x95_FFFFFF_FFFFFF_0283C4_000000.png

Posted

yes i was modifing the code in the same time whit you ... but you press submint some sec faster

Ingame Name : |DGT|Puma

DGT Clan Server 24/7 Owner/Scripter

MultiGameMode in progress :

n-560x95_FFFFFF_FFFFFF_0283C4_000000.png

Posted

Sry its Not working im able to Drive the Hydra when im not Army omg :(:(

Ingame nick: FWC>Haze

Server I play: FWCentral

Job: FWCentral Developer

Website: fwcentral.net

276473_205836092791903_297368_n.jpg

default.png?k=0e33bf78535ebcd5e63c863cd33516c6&10966802

default.png?k=557262ebc578ba0f5fbb0b9176e6820e&10966803

Posted

oK DUD i Will Try to Create Army Team To Test But its not Good WAY to Make Script Like that Work I Alerday have Teams ..

Thank you any way and i Will Try to do it Know Hope it Work

Ingame nick: FWC>Haze

Server I play: FWCentral

Job: FWCentral Developer

Website: fwcentral.net

276473_205836092791903_297368_n.jpg

default.png?k=0e33bf78535ebcd5e63c863cd33516c6&10966802

default.png?k=557262ebc578ba0f5fbb0b9176e6820e&10966803

Posted (edited)

tested and working

local vehicle1 =createVehicle ( 520, 302.74, 1818.85, 17.64) 
  
ArmyVehicles  ={[vehicle1]=true} 
ArmyTeam = { ["Army"]=true } 
  
function ArmyenterVehicle ( player, seat, jacked ) 
local team = getPlayerTeam(player) 
    if ( ArmyVehicles[source] ) and ( not ArmyTeam[getTeamName ( team )] )  then 
        cancelEvent() 
        outputChatBox ( "You aren't an Army Member , you mayn't drive this.", player ) --and tell the player why 
    end 
end 
addEventHandler ( "onVehicleStartEnter", getRootElement(), ArmyenterVehicle ) 

Edited by Guest

Ingame Name : |DGT|Puma

DGT Clan Server 24/7 Owner/Scripter

MultiGameMode in progress :

n-560x95_FFFFFF_FFFFFF_0283C4_000000.png

Posted

I DONT SEE THE Hydra at it Place Dud i think its not Created Plz Help duds Plz and thank you

Ingame nick: FWC>Haze

Server I play: FWCentral

Job: FWCentral Developer

Website: fwcentral.net

276473_205836092791903_297368_n.jpg

default.png?k=0e33bf78535ebcd5e63c863cd33516c6&10966802

default.png?k=557262ebc578ba0f5fbb0b9176e6820e&10966803

Posted

oh sorry i change the x,y,z to test it copy and paste again i put back your coridnates

Ingame Name : |DGT|Puma

DGT Clan Server 24/7 Owner/Scripter

MultiGameMode in progress :

n-560x95_FFFFFF_FFFFFF_0283C4_000000.png

Posted

Ok dud No Problem :) I Wait for the New Code ^^

Ingame nick: FWC>Haze

Server I play: FWCentral

Job: FWCentral Developer

Website: fwcentral.net

276473_205836092791903_297368_n.jpg

default.png?k=0e33bf78535ebcd5e63c863cd33516c6&10966802

default.png?k=557262ebc578ba0f5fbb0b9176e6820e&10966803

Posted

i already change the corinates just copy paste my code again

Ingame Name : |DGT|Puma

DGT Clan Server 24/7 Owner/Scripter

MultiGameMode in progress :

n-560x95_FFFFFF_FFFFFF_0283C4_000000.png

Posted

Thank you dud you saved the Day :)

Ingame nick: FWC>Haze

Server I play: FWCentral

Job: FWCentral Developer

Website: fwcentral.net

276473_205836092791903_297368_n.jpg

default.png?k=0e33bf78535ebcd5e63c863cd33516c6&10966802

default.png?k=557262ebc578ba0f5fbb0b9176e6820e&10966803

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...