[Question] Pickup if
#1

The factions are this way:

#define PD 1
#define BOMB 2
#define GOB 3

How would you make the "BOMB" faction if you can enter but the others do not?

PHP код:
public OnPlayerPickUpPickup(playeridpickupid)
{
    new 
facID PlayerInfo[playerid][pFaction];
    if(
pickupid == InteriorPolicia)
    {
    if(
FactionInfo[facID][fType] == PD) return SendClientMessage(playerid,0xff0066ff,"You are not of the faction.");
    new 
PlayerLogeado[MAX_PLAYERS]; //User without faction.
    
if(PlayerLogeado[playerid] == 0) return SendClientMessage(playerid,0xff0066ff,"You are not of the faction.");
    
SetPlayerPos(playerid,1565.3247,-1671.1831,20.6039); // X,Y,Z 
    
}
    return 
1;

Reply


Messages In This Thread
[Question] Pickup if - by CDGlock - 26.09.2017, 13:43
Re: [Question] Pickup if - by Bingo - 26.09.2017, 14:41
Re: [Question] Pickup if - by CDGlock - 26.09.2017, 14:51
Re: [Question] Pickup if - by Bingo - 26.09.2017, 14:54

Forum Jump:


Users browsing this thread: 1 Guest(s)