I just attempted and failed.
PHP код:
new Entrance;
new Exitpoint;
public OnGameModeInit()
{
//Entrance & Exits
Entrance = AddStaticPickup(1239, 1, 2622.9094,2754.1184,12.5452, -1);//FBI Entrance
Exitpoint = AddStaticPickup(1239, 1,238.6524,140.3135,1003.0234, -1);//FBI Exit
Entrance = AddStaticPickup(1239, 1,2659.5286,2753.1008,12.5377, -1);//FBI Rear Entrance
Exitpoint = AddStaticPickup(1239, 1,249.6860,181.7354,1003.0234, -1);//FBI Rear Exit
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == Entrance)
{
SendClientMessage(playerid,0xFFFFFFFF,"Type /enter to enter!");
}
if(pickupid == Exitpoint)
{
SendClientMessage(playerid,0xFFFFFFFF,"Type /exit to exit!");
}
return 1;
}
For some reason the only one that pops up with the text, is the one on the inside, and it shows both client messages.