Jump to content

طلب تعديل


Recommended Posts

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
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

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 by Guest
Link to comment

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...