*** This topic title is not descriptive.
#3

PHP Code:
public OnPlayerClickMap(playeridFloat:fXFloat:fYFloat:fZ)
{
    if(
IsPlayerAdmin(playerid))
    {
        new 
string[124]
        
SetPlayerPos(playerid,fX,fY,fZ);
        
format(string,sizeof(string,"Teleported to %f %f %f",fX,fY,fZ);
        
SendClientMessage(playerid,-1,string);
    }
    return 
1;

It's when a player clicks the map. The code above if the player is a RCON admin, he will be teleported to that position and sent a message of the co-ords.
Reply


Messages In This Thread
*** This topic title is not descriptive. - by ss2119 - 03.11.2012, 13:22
Re: need help im a newbie - by InfiniTy. - 03.11.2012, 13:24
Re: need help im a newbie - by tyler12 - 03.11.2012, 13:24
Re: need help im a newbie - by ss2119 - 07.11.2012, 10:14
Re: need help im a newbie - by ss2119 - 07.11.2012, 10:17

Forum Jump:


Users browsing this thread: 1 Guest(s)