OnPlayerEnterVehicle
#1

I've made a command that when you enter a car it tells you what faction it is from or if its a state car.
I've made on if your in a police car it would say [SAPD] at the end,
But when i enter any car it only says it from SAPD
here
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    new vname[24],string[128];
    GetVehicleName(vehicleid, vname, sizeof(vname));
    if(vehicleid == 596 || 597 || 599 || 427 || 497)
    {
    format(string,sizeof(string),"You are entering a: %s(%d) Owner: SAPD",vname,vehicleid);
    SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
    }
    else {
    format(string,sizeof(string),"You are entering a: %s(%d) Owner: [State]",vname,vehicleid);
    SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
    }
    return 1;
}
Reply


Messages In This Thread
OnPlayerEnterVehicle - by dannyk0ed - 05.04.2012, 21:28
Re: OnPlayerEnterVehicle - by antonio112 - 05.04.2012, 21:32
Re: OnPlayerEnterVehicle - by ViniBorn - 05.04.2012, 21:36
Re: OnPlayerEnterVehicle - by dannyk0ed - 05.04.2012, 21:38
Re: OnPlayerEnterVehicle - by dannyk0ed - 05.04.2012, 21:47
Re: OnPlayerEnterVehicle - by Toreno - 05.04.2012, 21:50
Re: OnPlayerEnterVehicle - by ViniBorn - 05.04.2012, 21:55

Forum Jump:


Users browsing this thread: 1 Guest(s)