Need help with car entering...
#1

So I have a problem on player enters vehicle.. Message doesn't shows up.

I tryed difrent ways but still nothing.. I really need some help..

Here is the code:
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    new CarCheck = GetPlayerVehicleID(playerid);
    if(CarCheck == Cars[GroveStreet])
    {
        if (Group_GetPlayer(gGSF, playerid)) // Can use the car.
        {
            SendClientMessage(playerid, COLOR_RED, "* %s spins a key and tries to start vehicle engine.");
        }
        else
        {
            SendClientMessage(playerid, COLOR_RED, "You aren't in team Grove Street Crips");
            RemovePlayerFromVehicle(playerid);
        }
        return 1;
    }
    if(CarCheck == Cars[SevileCrips])
    {
        if (Group_GetPlayer(gSBF, playerid)) // Can use the car.
        {
            SendClientMessage(playerid, COLOR_RED, "* %s spins a key and tries to start vehicle engine.*");
        }
        else
        {
            SendClientMessage(playerid, COLOR_RED, "You aren't in team Sevile Beach Crips");
            RemovePlayerFromVehicle(playerid);
        }
        return 1;
    }
    if(CarCheck == Cars[VeronaBeachCrips])
    {
        if (Group_GetPlayer(gVBF, playerid)) // Can use the car.
        {
            SendClientMessage(playerid, COLOR_RED, "* %s spins a key and tries to start vehicle engine.*");
        }
        else
        {
            SendClientMessage(playerid, COLOR_RED, "You aren't in team Verona Beach Crips");
            RemovePlayerFromVehicle(playerid);
        }
        return 1;
    }
    if(CarCheck == Cars[TempleDriveCrips])
    {
        if (Group_GetPlayer(gTDF, playerid)) // Can use the car.
        {
            SendClientMessage(playerid, COLOR_RED, "* %s spins a key and tries to start vehicle engine.*");
        }
        else
        {
            SendClientMessage(playerid, COLOR_RED, "You aren't in team Temple Drive Crips");
            RemovePlayerFromVehicle(playerid);
        }
        return 1;
    }
    return 1;
}
Compiles without warnings and errors..
Reply


Messages In This Thread
Need help with car entering... - by Scrillex - 10.02.2013, 20:34
Re: Need help with car entering... - by MP2 - 10.02.2013, 20:48
Re: Need help with car entering... - by LeBoyce - 10.02.2013, 20:54
Re: Need help with car entering... - by Scrillex - 10.02.2013, 21:38
Re: Need help with car entering... - by LeBoyce - 10.02.2013, 21:45
Re: Need help with car entering... - by Scrillex - 10.02.2013, 22:25
Re: Need help with car entering... - by mastermax7777 - 10.02.2013, 22:30
Re: Need help with car entering... - by Scrillex - 10.02.2013, 22:43

Forum Jump:


Users browsing this thread: 1 Guest(s)