Police and SRT Car problems
#6

use this is more easy, you just change the condition when check if it's cop or not
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(ispassenger == 0)
    {
    if(GetVehicleModel(vehicleid) == 523 || GetVehicleModel(vehicleid) == 596 || GetVehicleModel(vehicleid) == 497 || GetVehicleModel(vehicleid) == 427 || GetVehicleModel(vehicleid) == 601)
    {
    if(GetPlayerJobID(playerid)==2)
        {
        return 1;
        }
    else
        {
        SendClientMessage(playerid, c_r, "( ! ) This vehicle is for Police Officers only !");
        GetPlayerPos(playerid,Float:LocX,Float:LocY,Float:LocZ);
        SetPlayerPos(playerid,Float:LocX,Float:LocY,Float:LocZ);
        return 1;
        }
    }
}}
return 1;
}
Reply


Messages In This Thread
Police and SRT Car problems - by SomebodyAndMe - 05.01.2012, 14:16
Re: Police and SRT Car problems - by SomebodyAndMe - 07.01.2012, 06:53
Re: Police and SRT Car problems - by SomebodyAndMe - 15.01.2012, 08:31
Re: Police and SRT Car problems - by JamesC - 15.01.2012, 08:39
Re: Police and SRT Car problems - by SomebodyAndMe - 15.01.2012, 08:43
Re: Police and SRT Car problems - by mineralo - 15.01.2012, 08:43
Re: Police and SRT Car problems - by SomebodyAndMe - 15.01.2012, 08:46
Re: Police and SRT Car problems - by mineralo - 15.01.2012, 09:42
Re: Police and SRT Car problems - by Mean - 15.01.2012, 09:44
Re: Police and SRT Car problems - by HB - 15.01.2012, 10:22

Forum Jump:


Users browsing this thread: 6 Guest(s)