Team Cars Problem!
#1

Team Cars Problem! Everything is compiling and i think it works but it doesnt WORK!
I think problem is somewhere in PlayerStateChange help me :<
Pastebin
pawn Код:
#define CORLEONE 3

enum TeamCars
{
    Corleone
}
new Cars[TeamCars];

Cars[Corleone] = CreateVehicle(545,488.6407,-1498.9587,20.2783,351.7271,0,0,120); // Corleone Car 1

public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER)
    {
        new CarCheck = GetPlayerVehicleID(playerid);
        if(CarCheck == Cars[Corleone])
        {
            if(gTeam[playerid] == CORLEONE)
            {
                SendClientMessage(playerid,COLOR_GREEN, "You are now driving the Grove Car!");
            }
            else
            {
                SendClientMessage(playerid, COLOR_RED, "You do not have the keys for this car!");
                RemovePlayerFromVehicle(playerid);
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Team Cars Problem! - by Majava - 29.10.2012, 12:28
Re: Team Cars Problem! - by Stereotype - 29.10.2012, 14:11
Re: Team Cars Problem! - by park4bmx - 29.10.2012, 14:27

Forum Jump:


Users browsing this thread: 1 Guest(s)