Problem with rent cars.
#2

pawn Code:
public OnPlayerStateChange( playerid, newstate, oldstate )
{
    if( newstate == PLAYER_STATE_DRIVER )
    {
        if(IsARentableCar(newcar))
        {
            if(GetPlayerVehicleSeat(playerid) == 1)
            {
                if(rentkey[playerid] == 0)
                {
                    RemovePlayerFromVehicle(playerid);
                    SendClientMessage(playerid,COLOR_RED,"You do not have a rent card.Go buy one.");
                }
                if(rentkey[playerid] == 1)
                {
                    SendClientMessage(playerid,COLOR_RED,"Watch out,When you exit the vehicle you wont be able to ride it again.");
                }
            }
        }  
    }
    return 1;
}
Reply


Messages In This Thread
Problem with rent cars. - by bijoyekuza - 28.02.2011, 19:42
Re: Problem with rent cars. - by Mean - 28.02.2011, 19:56
Re: Problem with rent cars. - by bijoyekuza - 01.03.2011, 04:30
Re: Problem with rent cars. - by Steven82 - 01.03.2011, 04:33
Re: Problem with rent cars. - by bijoyekuza - 01.03.2011, 09:23
Re: Problem with rent cars. - by bijoyekuza - 01.03.2011, 09:34
Re: Problem with rent cars. - by bijoyekuza - 02.03.2011, 09:54
AW: Re: Problem with rent cars. - by Nero_3D - 02.03.2011, 10:09
Re: AW: Re: Problem with rent cars. - by bijoyekuza - 02.03.2011, 14:13
Re: Problem with rent cars. - by bijoyekuza - 03.03.2011, 12:29

Forum Jump:


Users browsing this thread: 1 Guest(s)