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 
playerVehiclenewFreezeStatus )
        
outputChatBox "#ffa410[CW:STOP] #cc0000All player's Freeze!",  getRootElement(), 25500true )
    
end
end


 addCommandHandler 
"cwstop"freeze )