SendClientMessage Loop
#5

It will SendMessage after 10 seconds if you are standing on pickup.
If you want server to send Message only once, irrespective of time you stay on pickup, I would suggest to use a streamer.

Create a circular area around pickup,

pawn Код:
area1 = CreateDynamicCircle(Float:x, Float:y, Float:size, worldid = -1, interiorid = -1, playerid = -1);
when player leave area
pawn Код:
public OnPlayerLeaveDynamicArea(playerid, areaid)
{
    if(areaid == area1) {
        SetPVarInt(playerid,"SendMessage",1); }
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == test)
    {
        switch(GetPVarInt(playerid,"SendMessage")
        {
            case 1:
            {
                SendClientMessage(/*Message*/);
                SetPVarInt(playerid,"SendMessage",0);
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
SendClientMessage Loop Problem - by Emrets61 - 19.08.2012, 05:59
Re: SendClientMessage Loop - by RedJohn - 19.08.2012, 06:53
Re: SendClientMessage Loop - by [MM]RoXoR[FS] - 19.08.2012, 06:59
Re: SendClientMessage Loop - by RedJohn - 19.08.2012, 07:10
Re: SendClientMessage Loop - by [MM]RoXoR[FS] - 19.08.2012, 07:21
Re: SendClientMessage Loop - by Universal - 19.08.2012, 07:25
Re: SendClientMessage Loop - by Emrets61 - 20.08.2012, 17:33

Forum Jump:


Users browsing this thread: 1 Guest(s)