αвυ-wαleed Posted May 16, 2014 Share Posted May 16, 2014 addEventHandler("onVehicleStartEnter", getResourceRootElement(getThisResource()), function(player,seat) if getElementData( player, 'gang' ) == groupName and getPlayerTeam( player ) and getTeamName( getPlayerTeam( player ) ) == 'Police' then return outputChatBox("Group" .. groupName .. " Only", player, 255, 0, 0, true) end if seat == 0 then outputChatBox("Group " .. groupName .. " Only", player, 255, 0, 0, true) cancelEvent() end end ) مايقدر يسوق الا اعضاء القروب بس الركوب معزز يقدر أي احد يركب ابغى مايقدر يركب معزز الا نفس القروب حتى ورى مايركب الا من نفس القروب Link to comment
</Mr.Tn6eL> Posted May 16, 2014 Share Posted May 16, 2014 addEventHandler("onVehicleStartEnter", getResourceRootElement(getThisResource()), function(player,seat) if getElementData( player, 'gang' ) == groupName and getPlayerTeam( player ) and getTeamName( getPlayerTeam( player ) ) == 'Police' then return outputChatBox("Group" .. groupName .. " Only", player, 255, 0, 0, true) end if seat == 0 then outputChatBox("Group " .. groupName .. " Only", player, 255, 0, 0, true) cancelEvent() end end ) مايقدر يسوق الا اعضاء القروب بس الركوب معزز يقدر أي احد يركب ابغى مايقدر يركب معزز الا نفس القروب حتى ورى مايركب الا من نفس القروب addEventHandler("onVehicleStartEnter", getResourceRootElement(getThisResource()), function(player) if getElementData( player, 'gang' ) == groupName and getPlayerTeam( player ) and getTeamName( getPlayerTeam( player ) ) == 'Police' then return outputChatBox("Group" .. groupName .. " Only", player, 255, 0, 0, true) end outputChatBox("Group " .. groupName .. " Only", player, 255, 0, 0, true) cancelEvent() end ) Link to comment
#Rmad~> Posted May 16, 2014 Share Posted May 16, 2014 (edited) addEventHandler("onVehicleEnter",root, function(player) if getElementData(player,'gang') == groupName then if getPlayerTeam (player) and getPlayerTeam (player) == getTeamFromName ("Police") then removePedFromVehicle ( player ) outputChatBox("Group "..groupName.." Only",player,255,0,0,true) else outputChatBox("Group " .. groupName .. " Only", player, 255, 0, 0, true) cancelEvent(true) end end end ) Edited May 16, 2014 by Guest Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now