Problem with OnPLayerEnterVehicle
#3

Sorry. here's the code.
PHP код:
public OnPlayerEnterVehicle(playeridvehicleidispassenger)
{            
    if (
gCar[vehicleid][vSigna])
    {
        
signalisatsioon(vehicleid);
        
SCM(playeridCOLOR_LIGHTRED"Sхiduki signalisatsioon hakkas tццle!");
    }
    if (
groupVariables[vehicleVariables[vehicleid][vVehicleGroup]][gGroupType] == && ispassenger)
    {
        new 
taksojuht GetVehicleDriver(vehicleid);
        if (
taksojuht != -1)
        {
            if (
groupVariables[playerVariables[taksojuht][pGroup]][gGroupType] == 8)
            {
                if (
taksohind[taksojuht] != -1)
                {
                    if (
playerVariables[playerid][pMoney] < taksohind[taksojuht])
                    {
                        
RemovePlayerFromVehicle(playerid);
                        
SCM(playeridCOLOR_RED"Sul pole piisavalt raha!");
                    }
                    
taksomeeter[playerid] = 0;
                    
taksomeeter[playerid] += taksohind[taksojuht];
                    new 
string[64];
                    
format(stringsizeof(string), "Taksomeeter: %i$"taksomeeter[playerid]);
                    foreach (
Playeri)
                    {
                        if (
IsPlayerInVehicle(ivehicleid)) GameTextForPlayer(istring100001);
                    }
                }
            }
        }
    }
    if (
t88timer[playerid] != -1)
    {
        if (
vehicleid == t88autoid[playerid])
        {
            
KillTimer(t88timer[playerid]);
            
t88timer[playerid] = -1;
        }
    }
    return 
1;

Reply


Messages In This Thread
Problem with OnPLayerEnterVehicle - by Ld Est Ld - 14.06.2013, 20:17
Re: Problem with OnPLayerEnterVehicle - by SilverKiller - 14.06.2013, 20:22
Re: Problem with OnPLayerEnterVehicle - by Ld Est Ld - 14.06.2013, 20:23
Re: Problem with OnPLayerEnterVehicle - by IstuntmanI - 14.06.2013, 21:21

Forum Jump:


Users browsing this thread: 1 Guest(s)