21.11.2010, 04:23
Hmm....
So I have this ATC system Im making and It seems to not want to work. The only part that I don't have working is the vid part.
I defined vid as:
Heres My Code Obviously with the forward:
So I have this ATC system Im making and It seems to not want to work. The only part that I don't have working is the vid part.
I defined vid as:
pawn Код:
vid = GetPlayerVehicleID(playerid);
pawn Код:
public CheckATC(playerid,newstate)
{
new vid = GetPlayerVehicleID(playerid);
if(ATCAllow[playerid] == 0 || newstate == PLAYER_STATE_DRIVER)
{
TogglePlayerControllable(playerid,0);
}
if(ATCAllow[playerid] == 1 && newstate == PLAYER_STATE_DRIVER)
{
TogglePlayerControllable(playerid,1);
}
}