Locate
#5

Код:
CMD:locate(playerid, params[])
{

        new otherid, str[100];
	if(sscanf(params, "u", otherid))
	{
	    Usage(playerid, "/locate <ID>");
 		return true;
	}
	if(otherid == INVALID_PLAYER_ID)
        return SendClientMessage(playerid, -1,  "Player not connected!");

	format(str, sizeof(str), "%s(%d)'s  Location: %s",  PlayerName[otherid], otherid, GetPlayerLocation(otherid));
	SendClientMessage(playerid, -1, str);
	return true;
}
Edit PlayerName[otherid] to YourPlayerNameVaiable[otherid]

PTA: This is my code, edit this to your script.
Reply


Messages In This Thread
Locate - by Hunud - 27.03.2018, 10:15
Re: Locate - by AliBro - 27.03.2018, 10:20
Re: Locate - by IdonTmiss - 27.03.2018, 10:24
Re: Locate - by Hunud - 27.03.2018, 10:26
Re: Locate - by UFF - 27.03.2018, 14:52
Re: Locate - by Hunud - 27.03.2018, 15:07

Forum Jump:


Users browsing this thread: 1 Guest(s)