Advertisement
Guest User

Untitled

a guest
Aug 26th, 2014
487
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. #include <a_samp>
  2. #include <zcmd>
  3. #include <sscanf2>
  4. #include <a_zones>
  5. public OnFilterScriptInit()
  6. {
  7. print("\n--------------------------------------");
  8. print(" GPS BY JEEVANJYOTHISH");
  9. print("--------------------------------------\n");
  10. return 1;
  11. }
  12.  
  13. public OnFilterScriptExit()
  14. {
  15. return 1;
  16. }
  17. CMD:gps(playerid,params[])
  18. {
  19. new id,string[64],zone[MAX_ZONE_NAME],pName[MAX_PLAYER_NAME];
  20. //if(!IsPlayerCop(playerid)) return SendClientMessage(playerid,-1,"Error: You Must Be A Cop To Use This Command");
  21. if(sscanf(params,"u",id)) return SendClientMessage(playerid,-1,"/gps [playerid]");
  22. if(!IsPlayerConnected(id)) return SendClientMessage(playerid,-1,"Error: Player is disconnected .");
  23. GetPlayerName(id,pName,MAX_PLAYER_NAME);
  24. GetPlayer2DZone(playerid, zone, MAX_ZONE_NAME);
  25. format(string,sizeof(string),"%s(%d) is currently at %s",pName,id,zone);
  26. SendClientMessage(playerid,-1,string);
  27. return 1;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement