Client message when near pickup
#1

I'm trying to make a message appear when you get near the pickup to enter a building.

Currently the way I have it, the message pops up after you use the /enter command.

PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    if(!
strcmp(cmdtext"/enter"true))
    {
        if(
IsPlayerInRangeOfPoint(playerid3.02622.90942754.118412.5452))
        
SendClientMessageToAll(0xFFFFFFFF,"Type /enter to enter!");
        {
            
SetPlayerPos(playerid238.6620,141.0520,1003.0234);//FBI Entrance
            
SetPlayerInterior(playerid3);
        }
        if(
IsPlayerInRangeOfPoint(playerid3.02659.5286,2753.1008,12.5377))
           
SendClientMessageToAll(0xFFFFFFFF,"Type /enter to enter!");
        {
            
SetPlayerPos(playerid249.8472,181.9114,1003.0234);//Rear FBI Entrance
            
SetPlayerInterior(playerid3);
        }
    } 
Any help is appreciated!
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)