15.01.2017, 15:45
(
Последний раз редактировалось Mijata; 15.01.2017 в 16:21.
)
Why this not working, i don't have any error while compliting, i wanna to create vehicles only for one team players
but that other players from other teams can't enter...
but that other players from other teams can't enter...
Код:
if(newstate == PLAYER_STATE_DRIVER)
{
new CarCheck = GetPlayerVehicleID(playerid);
if(CarCheck == TCars[Silent])
{
if(gTeam[playerid] == BG)
{
SendClientMessage(playerid,-1, "You are now driving the silent car!");
}
else
{
SendClientMessage(playerid, -1, "You do not have the keys for this car!");
RemovePlayerFromVehicle(playerid);
}
}
}
return 1;
}

