Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <zcmd>
- #include <sscanf2>
- #include <a_zones>
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" GPS BY JEEVANJYOTHISH");
- 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,"Error: You Must Be A Cop To Use This Command");
- if(sscanf(params,"u",id)) return SendClientMessage(playerid,-1,"/gps [playerid]");
- if(!IsPlayerConnected(id)) return SendClientMessage(playerid,-1,"Error: Player is disconnected .");
- 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;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement