Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: skrypt...
1. Skrypt...
Siema
Mam problem ze skryptem jest to skrypt na to ze gdy gracz opr?cz admina wejdzie do huntera hydry lub rhino dostaje kicka ale jest problem poniewa? nie dostaj? kicka
Za pomoc piwo
Kod
Kod:


adminVehicles = { [520]=true, [432]=true, [425]=true }

function wywal ( thePlayer, seat, jacked )
if not isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("Admin")) then
if ( adminVehicles[getElementModel ( source )] ) then
kickPlayer (thePlayer, [ reason = "Wsiadles do zabronionego pojazdu." ])
end
end
end
addEventHandler ( "onVehicleStartEnter", getRootElement(), wywal )