12.04.2011, 02:14
I think you have to use SetPVar
Example:
It it worth a try =/
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"))