SA-MP Forums Archive
Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help (/showthread.php?tid=621987)



Help - bugmenotlol - 17.11.2016

hello all
i need a small help
i need a command like when u type /locate playerid
it should show the players location and zone in game


Re: Help - TheDarkBlade - 17.11.2016

Note that :
1.This is a completely basic command made in 2 mins
2.It uses sscanf
3.If you want to make work as you want you could use the wiki to find more info .
PHP код:
CMD:locate(playerid,params[])
{
    new 
id,Float:X,Float:Y,Float:Z;
    if(
sscanf(params,"u",id)) return SendClientMessage(playerid,-1,"CMD:/locate <id>");
    
GetPlayerPos(id,X,Y,Z);
    
SetPlayerCheckpoint(playerid,X,Y,Z);
    return 
1;




Re: Help - Jelly23 - 17.11.2016

This section isn't for requests.

If you need something, you may ask here: https://sampforum.blast.hk/showthread.php?tid=447813