Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <zcmd>
- #include <sscanf2>
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Sistema de versão de cliente SA:MP");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
- return 1;
- }
- CMD:check(playerid,params[])
- {
- if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1,"{ff2400}[ERRO]: Comandos Apenas RCON");
- new id, string[398],playername[24];
- if(sscanf(params,"us[128]",id)) return SendClientMessage(playerid, -1, "CMD: /check [ID]");
- if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, "[ERROR]: Jogador não está conectador");
- GetPlayerName(playerid,playername,24);
- new ClientVersion[32];
- GetPlayerVersion(id, ClientVersion, 32);
- format(string,sizeof(string),"{FF0000}» {FFFFFF}Jogador {FF0000}%s {ffffff}CLIENTE:[{ff2400}%s{ffffff}]", pName(id), ClientVersion);
- SendClientMessage(playerid, -1, string);
- return 1;
- }
- stock pName(playerid)
- {
- new GetNome[24];
- GetPlayerName(playerid, GetNome, 24);
- return GetNome;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement