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: isvehiclefrozen
1. isVehicleFrozen
Mam problem z freezowaniem. Chc? zrobi? tak, ?e jak wpisze /cwstop to zatrzymaj? si? wszystkie auta. Uda?o mi si? zrobi? to, ale zatrzymuje si? tylko moje auto. Wie kto? jak zrobi? freeze dla wszystkich aut?

function freeze (player)
if 
isPlayerInVehicle ( player ) then
        local playerVehicle 
= getPlayerOccupiedVehicle ( player )
        
local currentFreezeStatus = isVehicleFrozen ( playerVehicle )
        
local newFreezeStatus = not currentFreezeStatus
        setVehicleFrozen 
( playerVehicle, newFreezeStatus )
        
outputChatBox ( "#ffa410[CW:STOP] #cc0000All player's Freeze!",  getRootElement(), 255, 0, 0, true )
    
end
end


 addCommandHandler 
( "cwstop", freeze )