Pickup SPAM
#9

Quote:
Originally Posted by Jari_Johnson*
Посмотреть сообщение
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 Код:
SetTimerEx("Resetvar",10000,0,"i",playerid);
forward Resetvar(playerid);
public Resetvar(playerid)
{
showedmessage[playerid] = 0;
}
I do not recommend doing that! Will be much faster and better:

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;
}
than timer
Reply


Messages In This Thread
Pickup SPAM - by Albania - 17.03.2013, 15:17
Re: Pickup SPAM - by kamzaf - 17.03.2013, 15:20
Re: Pickup SPAM - by Albania - 17.03.2013, 15:22
Re: Pickup SPAM - by Jstylezzz - 17.03.2013, 15:27
Re: Pickup SPAM - by Albania - 17.03.2013, 15:34
Re: Pickup SPAM - by Albania - 17.03.2013, 16:01
Re: Pickup SPAM - by Jstylezzz - 17.03.2013, 16:03
Re: Pickup SPAM - by Albania - 17.03.2013, 19:36
Re: Pickup SPAM - by stabker - 17.03.2013, 20:29

Forum Jump:


Users browsing this thread: 1 Guest(s)