Restriction
#7

Tried this one but doesn't work

pawn Code:
//ongamemodeinit
RestrictFFS = CreateDynamicRectangle(2035.0002,1007.8917, 2078.3801,1007.7595,  -1, -1, -1);

public OnPlayerEnterDynamicArea(playerid, areaid)
{
    if(areaid == RestrictFFS)
        if(IsPlayerInAnyVehicle(playerid))
        {
            if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 425)
            {
                SetPlayerHealth(playerid,1.0);
                SendClientMessage(playerid, -1,"You're in protected area!");
            }
        }
    return 1;}
Reply


Messages In This Thread
Restriction - by Bondage - 02.01.2015, 16:14
Re: Restriction - by Sledgehammer - 02.01.2015, 16:18
Re: Restriction - by Bondage - 02.01.2015, 16:20
Re: Restriction - by Sledgehammer - 02.01.2015, 16:24
Re: Restriction - by Bondage - 02.01.2015, 16:26
Re: Restriction - by Sledgehammer - 02.01.2015, 16:28
Re: Restriction - by Bondage - 02.01.2015, 16:54
Re: Restriction - by Sledgehammer - 02.01.2015, 17:03
Re: Restriction - by Bondage - 02.01.2015, 17:20

Forum Jump:


Users browsing this thread: 1 Guest(s)