[HELP] Not working
#1

Hello guys,
I have timer checks if player is in safe zone, if player is in safe zone
player weapons will be armed to 0, now i add a new feature to the safe zone script
when player enter in safe zone with hydra/hunter/rhino player will removed in vehicle
then the vehicle will be deleted but it seem like it don't work i try GetPlayerVehicleID
but it didn't work

here is the code

pawn Code:
public OnPlayerArea()
{
    foreach(Player, i)
    {
        if(IsPlayerConnected(i))
        {
            if(IsPlayerInArea(i, 2231.822265, -1434.579711, 2375.822265, -1226.579711))
            {
                SetPlayerArmedWeapon(i, 0);
                if(IsPlayerInVehicle(i, HiddenVeh[0])) return 1;
                if(IsPlayerInVehicle(i, 432) || IsPlayerInVehicle(i, 520) || IsPlayerInVehicle(i, 425))
                {
                    RemovePlayerFromVehicle(i);
                    DestroyVehicle(GetPlayerVehicleID(i));
                    SendClientMessage(i, COLOR_RED, "*** You cannot bring a harmful/big vehicles inside the Safe Zone! ***");
                }
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
[HELP] Not working - by JaKe Elite - 08.06.2012, 09:50
Re: [HELP] Not working - by iggy1 - 08.06.2012, 09:54
Re: [HELP] Not working - by Vince - 08.06.2012, 09:55
Re: [HELP] Not working - by JaKe Elite - 08.06.2012, 09:59

Forum Jump:


Users browsing this thread: 1 Guest(s)