07.08.2014, 15:02
hey guys, i am trying to make a command where i can /locate another player.
when i locate them, it will send me a message saying "Player(id) has been Located in Ganton"
im using this filterscript as my servers gps system.
https://sampforum.blast.hk/showthread.php?tid=94353
is there a way, somewhere in that script that i can add a /locate cmd?
thanks
edit: this was my attempt lol, i know it makes no sense whatsoever
when i locate them, it will send me a message saying "Player(id) has been Located in Ganton"
im using this filterscript as my servers gps system.
https://sampforum.blast.hk/showthread.php?tid=94353
is there a way, somewhere in that script that i can add a /locate cmd?
thanks
edit: this was my attempt lol, i know it makes no sense whatsoever
Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success) { new cmd[256]; if(success) { return 1; } if(strcmp(cmd, "/loc", true) == 0) { new str[256]; for(new i=0; i<gMax; i++) format(str,sizeof(str),"%s", GetPlayerArea(i)); SendClientMessage(playerid, COLOR_YELLOW, str); return 1; } return 0; }