0 Üye ve 1 Ziyaretçi konuyu incelemekte.
vehicle1 = createVehicle ( 602 , 2014.77124, 2250.16650, 17.36250, 0, 0, 95.29736328125 ) - Aracın koordinatlarıvehicle = createVehicle ( modelID, x, y, z, rotX, rotY, rotZ )state = setVehicleDoorState ( vehicle, 1, 1 )setVehicleDamageProof ( vehicle, true ) function lockPrivate( player, seat, jacked ) local accName = getAccountName ( getPlayerAccount ( player ) ) if ( not isObjectInACLGroup ( "user."..accName, aclGetGroup ( "PCG" ) ) ) then - Grubun ACL'si cancelEvent ( ) outputChatBox ( "Bu araba Parker Comany Grubuna aittir", player, 0, 245, 82, false ) else outputChatBox ( "Parker Comany Group Arabasina hosgeldiniz", player, 0, 255, 0, false ) endendaddEventHandler ( "onVehicleStartEnter", vehicle1, lockPrivate )
Aradığın script bu olmalı...Linki görebilmek için Kayıt olun yada Giriş yapın.İstediğin Grubun binmesi içinde;Kod: luavehicle1 = createVehicle ( 602 , 2014.77124, 2250.16650, 17.36250, 0, 0, 95.29736328125 ) - Aracın koordinatlarıvehicle = createVehicle ( modelID, x, y, z, rotX, rotY, rotZ )state = setVehicleDoorState ( vehicle, 1, 1 )setVehicleDamageProof ( vehicle, true ) function lockPrivate( player, seat, jacked ) local accName = getAccountName ( getPlayerAccount ( player ) ) if ( not isObjectInACLGroup ( "user."..accName, aclGetGroup ( "PCG" ) ) ) then - Grubun ACL'si cancelEvent ( ) outputChatBox ( "Bu araba Parker Comany Grubuna aittir", player, 0, 245, 82, false ) else outputChatBox ( "Parker Comany Group Arabasina hosgeldiniz", player, 0, 255, 0, false ) endendaddEventHandler ( "onVehicleStartEnter", vehicle1, lockPrivate )
addEventHandler("onVehicleStartEnter", root, function( player, seat, jacked ) if not isObjectInACLGroup( 'user.'..getAccountName( getPlayerAccount( player ) ), aclGetGroup( 'PCG' ) ) then cancelEvent() outputChatBox ( "Bu araba Parker Comany Grubuna aittir", player, 0, 245, 82, false ) endend)
ozelAraclar = { [1] = { "TSK", 400 }, -- ACL grubu ve Arac ID[2] = { "Admin", 600 }, -- ACL grubu ve Arac ID}addEventHandler("onVehicleStartEnter", root, function( player, seat, jacked )local accountname = getAccountName(getPlayerAccount(player)) for _, data in pairs (ozelAraclar) do local Grup, ID = data[1], data[2] if getElementModel(source) == ID and not isObjectInACLGroup("user." ..accountname, aclGetGroup(Grup)) then outputChatBox("Bu araca sadece "..Grup.." binebilir", player, 255, 255, 255, true) cancelEvent() end end end)