[FilterScript] GO2PLAYER40NlYC0P'S - 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: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] GO2PLAYER40NlYC0P'S (
/showthread.php?tid=528623)
GO2PLAYER40NlYC0P'S -
SreeKrishna - 29.07.2014
GO2PLAYER40NLYCOP'S
What?
With this script cops can get gps to find players .
CMDS.
/GPS [playerid]
Note: Dont ask for screenshots well this is a beta vErsioN .
This is my first script im new to sa-mp forum .
Download click me
Re: GO2PLAYER40NlYC0P'S -
SonicFreeStyle - 29.07.2014
this is a normal cmd of RPG Servers...so...nothing new...
Re: GO2PLAYER40NlYC0P'S -
rockhopper - 29.07.2014
Lol this just has a cmd and what is its name WTF Write it nicely !
Re: GO2PLAYER40NlYC0P'S -
Beckett - 29.07.2014
Not bad for a beginner, keep it up with scripting.
P.S: Use pastebin for such small filterscripts.
Re: GO2PLAYER40NlYC0P'S -
SilentSoul - 29.07.2014
Did you tried even to compile this script? it won't work btw because you're using
GetPlayer2DZone function, and you didn't even define the
include at all plus you're using outdated ways
Here's a simple way to do it, using zcmd,sscanf
pawn Code:
#include <a_samp>
#include <zcmd>
#include <sscanf2>
#include <a_zones> //http://pastebin.com/f68e1a6ad
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" GPS Script loaded");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
CMD:gps(playerid,params[])
{
new id,string[64],zone[MAX_ZONE_NAME],pName[MAX_PLAYER_NAME];
//if(!IsPlayerCop(playerid)) return SendClientMessage(playerid,-1,"You need to be a cop to use this feature");
if(sscanf(params,"u",id)) return SendClientMessage(playerid,-1,"Syntax: /gps [playerid]");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid,-1,"This player is not connected at the moment");
GetPlayerName(id,pName,MAX_PLAYER_NAME);
GetPlayer2DZone(playerid, zone, MAX_ZONE_NAME);
format(string,sizeof(string),"%s(%d) is currently at %s",pName,id,zone);
SendClientMessage(playerid,-1,string);
return 1;
}
Anyways, nice attempt try to make it better in the next release.