26.09.2017, 13:43
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?
#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(playerid, pickupid)
{
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;
}