Pickup
#7

Код:
#include <a_samp>

enum YOUR_PLAYER_ENUM
{
        OnPickup
}
new Guy[MAX_PLAYERS][YOUR_PLAYER_ENUM];

forward YourFunctionName(playerid);
public YourFunctionName(playerid)
{
        if(IsPlayerInRangeOfPoint(playerid,2.0,0.0,0.0,0.0))
                {
                Guy[playerid][OnPickup]++; 
                if(Guy[playerid][OnPickup] == 1 && IsPlayerInRangeOfPoint(playerid,2.0,0.0,0.0,0.0))
                        {
                                        SendClientMessage(playerid,-1,"You are on the pickup");
                        }        
                if(!IsPlayerInRangeOfPoint(playerid,2.0,0.0,0.0,0.0))Guy[playerid][OnPickup] = 0;
                }  
        return 1;
}
Should go
Reply


Messages In This Thread
Pickup - by IchNar - 04.09.2017, 07:04
Re: Pickup - by 1fret - 04.09.2017, 07:15
Re: Pickup - by Bingo - 04.09.2017, 09:04
Re: Pickup - by JasonRiggs - 04.09.2017, 09:07
Re: Pickup - by IchNar - 04.09.2017, 09:22
Re: Pickup - by JasonRiggs - 04.09.2017, 09:24
Re: Pickup - by kAn3 - 04.09.2017, 10:53

Forum Jump:


Users browsing this thread: 2 Guest(s)