Advertisement
Rei_Ayanami

Cliente

Mar 2nd, 2021
576
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. #include <a_samp>
  2. #include <zcmd>
  3. #include <sscanf2>
  4.  
  5. public OnFilterScriptInit()
  6. {
  7. print("\n--------------------------------------");
  8. print(" Sistema de versão de cliente SA:MP");
  9. print("--------------------------------------\n");
  10. return 1;
  11. }
  12.  
  13. public OnFilterScriptExit()
  14. {
  15. return 1;
  16. }
  17.  
  18. public OnPlayerRequestClass(playerid, classid)
  19. {
  20. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  21. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  22. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  23. return 1;
  24. }
  25.  
  26. CMD:check(playerid,params[])
  27. {
  28. if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1,"{ff2400}[ERRO]: Comandos Apenas RCON");
  29. new id, string[398],playername[24];
  30. if(sscanf(params,"us[128]",id)) return SendClientMessage(playerid, -1, "CMD: /check [ID]");
  31. if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, "[ERROR]: Jogador não está conectador");
  32. GetPlayerName(playerid,playername,24);
  33. new ClientVersion[32];
  34. GetPlayerVersion(id, ClientVersion, 32);
  35. format(string,sizeof(string),"{FF0000}» {FFFFFF}Jogador {FF0000}%s {ffffff}CLIENTE:[{ff2400}%s{ffffff}]", pName(id), ClientVersion);
  36. SendClientMessage(playerid, -1, string);
  37. return 1;
  38. }
  39.  
  40. stock pName(playerid)
  41. {
  42. new GetNome[24];
  43. GetPlayerName(playerid, GetNome, 24);
  44. return GetNome;
  45. }
  46.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement