17.03.2013, 20:29
Quote:
Not sure if you totally solved it, but if not, check the following code.
Use SetTimerEx to set a timer with the playerid, like pawn Код:
|
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == FBIInsidePickup || pickupid == FBIRoofPickup || pickupid == FBIGaragePickup)
{
new rtime = gettime();
if(GetPVarInt(playerid, "FBIPickupMinSec") < rtime)
{
SetPVarInt(playerid, "FBIPickupMinSec", rtime + 10); //you can replace 10 for another time in seconds
SendClientMessage(playerid,COLOR_DODGERBLUE,"Pour utiliser l'ascenseur du FBI tapez /monter et /descendre.");
return 1;
}
}
return 1;
}