09.11.2010, 22:43
Hey guys just a quick question ive checked around looking for this but so far havent tried anything that is working
maybe im doing something wrong but heres what i done.
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER && IsPlayerInAnyVehicle(playerid))
{
new vid = GetPlayerVehicleID(playerid);
if(vid == 597 || vid == 599 && gTeam[playerid] == CIVILIAN)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_YELLOW, "You can NOT Enter a Police Vehicle");
}
}
return 1;
}
I followed another guys post like this and i couldnt get it working anyone wanna help?
maybe im doing something wrong but heres what i done.
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER && IsPlayerInAnyVehicle(playerid))
{
new vid = GetPlayerVehicleID(playerid);
if(vid == 597 || vid == 599 && gTeam[playerid] == CIVILIAN)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_YELLOW, "You can NOT Enter a Police Vehicle");
}
}
return 1;
}
I followed another guys post like this and i couldnt get it working anyone wanna help?