#3

I think you have to use SetPVar

Example:
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    new Float:XZ;
    new Float:YZ;
    new Float:ZZ;
    GetPlayerPos(playerid, XZ, YZ, ZZ);
    {
        DeathArea = GangZoneCreate(XZ-20, YZ-20, XZ+20, YZ+20);
        SetPVarFloat(playerid, "DeathAreaXZ_1", XZ-20);
        SetPVarFloat(playerid, "DeathAreaYZ_1", YZ-20);
        SetPVarFloat(playerid, "DeathAreaXZ_2", XZ+20);
        SetPVarFloat(playerid, "DeathAreaXZ_2", YZ+20);
    }
    GangZoneShowForAll(DeathArea, VIRUS_ZONE_COLOR);
    return 1;
}
pawn Код:
if(IsPlayerInArea(i, GetPVarFloat(playerid, "DeathAreaXZ_1"), GetPVarFloat(playerid, "DeathAreaYZ_1"), GetPVarFloat(playerid, "DeathAreaXZ_2"), GetPVarFloat(playerid, "DeathAreaYZ_2"))
It it worth a try =/
Reply


Messages In This Thread
Help - by marinov - 09.04.2011, 16:44
Re: Help - by marinov - 11.04.2011, 21:50
Re: Help - by Unknown123 - 12.04.2011, 02:14
Re: Help - by marinov - 12.04.2011, 02:22
Re: Help - by Lorenc_ - 13.04.2011, 04:49
Re: Help - by marinov - 13.04.2011, 11:59
Re: Help - by Lorenc_ - 14.04.2011, 07:22
Re: Help - by marinov - 15.04.2011, 19:41
Re: Help - by marinov - 18.04.2011, 02:54
Re: Help - by iJumbo - 18.04.2011, 06:07

Forum Jump:


Users browsing this thread: 2 Guest(s)