Reject player from car
#2

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(GetVehicleModel(vehicleid) == //VEHICLEID OF COP CAR)
    {
    if(gTeam[playerid] == TEAM_POLICE || ispassenger)
        {
        return 1;
        }
    else
    {
        SendClientMessage(playerid, c_r, "[ ! ] This vehicle is for cops only !");
        new Float:LocX,Float:LocY,Float:LocZ;
        GetPlayerPos(playerid,Float:LocX,Float:LocY,Float:LocZ);
        SetPlayerPos(playerid,Float:LocX,Float:LocY,Float:LocZ);
        return 1;
        }
    }
Reply


Messages In This Thread
Reject player from car - by craponnaruto - 19.08.2009, 23:45
Re: Reject player from car - by coole210 - 19.08.2009, 23:48

Forum Jump:


Users browsing this thread: 1 Guest(s)