loc command
#4

This should work:

PHP код:
CMD:loc(playeridparams[])
{
    new 
id;
    new 
targetcurrent_zone;
    
current_zone player_zone[target];
    if(
sscanf(params"u"id))
    {
        
SendClientMessage(playerid0xFF0000FF"Usage: /loc [playerid]");
    }
    else
    {
        if(
current_zone != -&& IsPlayerConnected(target))
        {
            new 
playername[MAX_PLAYER_NAME],message2[170];
            
GetPlayerName(id,playername,MAX_PLAYER_NAME);
            
format(message2,sizeof(message2),"%s(%d)'s current location: %s",playername,target,zones[current_zone][zone_name]);
            
SendClientMessage(playerid,0x00C7FFAA,message2);
        }
        else
        {
            
SendClientMessage(playerid,red,"Invalid Player ID");
        }
    }

Reply


Messages In This Thread
loc command - by Face9000 - 10.02.2012, 22:56
Re: loc command - by SnG.Scot_MisCuDI - 10.02.2012, 23:05
Re: loc command - by Face9000 - 10.02.2012, 23:22
Re: loc command - by Nuke547 - 10.02.2012, 23:54
Re: loc command - by SnG.Scot_MisCuDI - 11.02.2012, 00:06
Re: loc command - by Tanush123 - 11.02.2012, 00:52
Re: loc command - by SnG.Scot_MisCuDI - 11.02.2012, 15:50
Re: loc command - by Twisted_Insane - 11.02.2012, 16:09

Forum Jump:


Users browsing this thread: 2 Guest(s)