Client message when near pickup
#5

Quote:
Originally Posted by spawnzlive
Посмотреть сообщение
I just attempted and failed.


PHP код:
new Entrance;
new 
Exitpoint;
public 
OnGameModeInit()
{
    
//Entrance & Exits
    
Entrance AddStaticPickup(123912622.9094,2754.1184,12.5452, -1);//FBI Entrance
    
Exitpoint AddStaticPickup(12391,238.6524,140.3135,1003.0234, -1);//FBI Exit
    
Entrance AddStaticPickup(12391,2659.5286,2753.1008,12.5377, -1);//FBI Rear Entrance
    
Exitpoint AddStaticPickup(12391,249.6860,181.7354,1003.0234, -1);//FBI Rear Exit
    
return 1;
}
public 
OnPlayerPickUpPickup(playeridpickupid)
{
    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.
OnPlayerPickUpPickup works only with CreatePickup not AddStaticPickup so try to use that.
Reply


Messages In This Thread
Client message when near pickup - by spawnzlive - 18.10.2012, 02:52
Re: Client message when near pickup - by newbienoob - 18.10.2012, 03:35
Re: Client message when near pickup - by Glint - 18.10.2012, 03:48
Re: Client message when near pickup - by spawnzlive - 18.10.2012, 04:31
Re: Client message when near pickup - by Glint - 18.10.2012, 09:53
Re: Client message when near pickup - by Benzke - 18.10.2012, 10:01
Re: Client message when near pickup - by Glint - 18.10.2012, 10:03

Forum Jump:


Users browsing this thread: 2 Guest(s)