Quote:
Originally Posted by MarvinPWN
If you write it like this, it will work:
PHP код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == ospu)
{
GameTextForPlayer(playerid, "~g~~h~Faction Safe~n~~y~Type ~b~/opensafe~y~ to open~h~ faction safe !", 60*60*3600, 4);
SetTimerEx("PlayerInCheckpoint",1000,1,"ii",playerid,pickupid);
}
return 1;
}
forward PlayerInCheckpoint(playerid,pickupid);
public PlayerInCheckpoint(playerid,pickupid)
{
if(pickupid == 0)
{
if(!IsPlayerInRangeOfPoint(playerid,1.0,xyz))GameTextForPlayer(playerid," ",0,4);
}
return 1;
}
I have test it and it work perfectly.
(xyz => coordination)
|
Don't work ... What the .., whyyyy
EDIT AGAIN: I change from pickupid == 0 to pickupid == ospu and it worked , and it's working so "gud"

I can't give u +rep because i need to spend some reputation around -_-