Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <sscanf2>
- #include <zcmd>
- #define RED 0xFF0000FF
- #define GREEN 0x00FF00FF
- #define YELLOW 0xFFFF00FF
- #define SCM SendClientMessage
- #if defined FILTERSCRIPT
- #endif
- public OnFilterScriptInit()
- {
- print("\n---------------------------------------------------|");
- printf("| ");
- printf("| ");
- printf("| ");
- print("| XProAdmin! V1.0 Loaded Succes Fully!!! !!! !!!");
- printf("| ");
- printf("| ");
- printf("| ");
- print("|--------------------------------------------------|\n");
- return 1;
- }
- CMD:kick(playerid, params[])
- {
- new name[MAX_PLAYER_NAME], name2[MAX_PLAYER_NAME], pid, reason[128], mess[128];
- GetPlayerName(playerid, name, sizeof(name));
- GetPlayerName(playerid, name2, sizeof(name2));
- if(!IsPlayerAdmin(playerid)) return SCM(playerid, RED, "You Are Not Admin!!! !!! !!!");
- if(sscanf(params, "us", pid, reason)) return SCM(playerid, YELLOW, "Usage /Kick [ID] [REASON]!!! !!! !!!");
- if(!IsPlayerConnected(pid)) return SCM(playerid, RED, "Player Doesn't Exist!!! !!! !!!");
- else
- {
- format(mess, sizeof(mess), "%s Kicked {FF0000}%s Reason : {FF0000}%s!!!", name, name2, reason);
- SendClientMessageToAll(YELLOW, mess);
- Kick(pid);
- }
- return 1;
- }
- CMD:ban(playerid, params[])
- {
- new name[MAX_PLAYER_NAME], name2[MAX_PLAYER_NAME], pid, reason[128], mess[128];
- GetPlayerName(playerid, name, sizeof(name));
- GetPlayerName(playerid, name2, sizeof(name2));
- if(!IsPlayerAdmin(playerid)) return SCM(playerid, RED, "You Are Not Admin!!! !!! !!!");
- if(sscanf(params, "us", pid, reason)) return SCM(playerid, YELLOW, "Usage /Ban [ID] [REASON]!!! !!! !!!");
- if(!IsPlayerConnected(pid)) return SCM(playerid, RED, "Player Doesn't Exist!!! !!! !!!");
- else
- {
- format(mess, sizeof(mess), "%s Banned {FF0000}%s Reason : {FF0000}%s!!!", name, name2, reason);
- SendClientMessageToAll(YELLOW, mess);
- Ban(pid);
- }
- return 1;
- }
- CMD:freeze(playerid, params[])
- {
- new name[MAX_PLAYER_NAME], name2[MAX_PLAYER_NAME], pid, reason[128], mess[128];
- GetPlayerName(playerid, name, sizeof(name));
- GetPlayerName(playerid, name2, sizeof(name2));
- if(!IsPlayerAdmin(playerid)) return SCM(playerid, RED, "You Are Not Admin!!! !!! !!!");
- if(sscanf(params, "uf", pid, reason)) return SCM(playerid, YELLOW, "Usage /Freeze [ID] [REASON]!!! !!! !!!");
- if(!IsPlayerConnected(pid)) return SCM(playerid, RED, "Player Doesn't Exist!!! !!! !!!");
- else
- {
- format(mess, sizeof(mess), "Admin: %s Freeze You For Reason : %s", name, reason);
- SendClientMessage(pid, YELLOW, mess);
- TogglePlayerControllable(pid, 0);
- }
- return 1;
- }
- CMD:unfreeze(playerid, params[])
- {
- new name[MAX_PLAYER_NAME], name2[MAX_PLAYER_NAME], pid, reason[128], mess[128];
- GetPlayerName(playerid, name, sizeof(name));
- GetPlayerName(playerid, name2, sizeof(name2));
- if(!IsPlayerAdmin(playerid)) return SCM(playerid, RED, "You Are Not Admin!!! !!! !!!");
- if(sscanf(params, "uf", pid, reason)) return SCM(playerid, YELLOW, "Usage /Unfreeze [ID] [REASON]!!! !!! !!!");
- if(!IsPlayerConnected(pid)) return SCM(playerid, RED, "Player Doesn't Exist!!! !!! !!!");
- else
- {
- format(mess, sizeof(mess), "Admin: %s UnFroze You For Reason : %s", name, reason);
- SendClientMessage(pid, YELLOW, mess);
- TogglePlayerControllable(pid, 1);
- }
- return 1;
- }
- CMD:sethp(playerid, params[])
- {
- new name[MAX_PLAYER_NAME], name2[MAX_PLAYER_NAME], pid, Float:Health, mess[128];
- GetPlayerName(playerid, name, sizeof(name));
- GetPlayerName(playerid, name2, sizeof(name2));
- if(!IsPlayerAdmin(playerid)) return SCM(playerid, RED, "You Are Not Admin!!! !!! !!!");
- if(sscanf(params, "uf", pid, Health)) return SCM(playerid, YELLOW, "Usage /Sethp [ID] [HEALTH]!!! !!! !!!");
- if(!IsPlayerConnected(pid)) return SCM(playerid, RED, "Player Doesn't Exist!!! !!! !!!");
- else
- {
- format(mess, sizeof(mess), "Admin: %s SetYour Health", name);
- SendClientMessage(pid, YELLOW, mess);
- SetPlayerHealth(pid, Health);
- }
- return 1;
- }
- CMD:get(playerid, params[])
- {
- new name[MAX_PLAYER_NAME], name2[MAX_PLAYER_NAME], pid, Float:x, Float:y, Float:z, Float:x2, Float:y2, Float:z2 , mess[128];
- GetPlayerName(playerid, name, sizeof(name));
- GetPlayerName(playerid, name2, sizeof(name2));
- if(!IsPlayerAdmin(playerid)) return SCM(playerid, RED, "You Are Not Admin!!! !!! !!!");
- if(sscanf(params, "uf", pid)) return SCM(playerid, YELLOW, "Usage /GET [ID]!!! !!! !!!");
- if(!IsPlayerConnected(pid)) return SCM(playerid, RED, "Player Doesn't Exist!!! !!! !!!");
- else
- {
- GetPlayerPos(playerid, x, y, z);
- GetPlayerPos(pid, x2, y2, z2);
- format(mess, sizeof(mess), "Admin: %s Got You Right Now !!! !!! !!!", name);
- SendClientMessage(pid, YELLOW, mess);
- SetPlayerPos(pid, x, y, z);
- }
- return 1;
- }
- CMD:goto(playerid, params[])
- {
- new name[MAX_PLAYER_NAME], name2[MAX_PLAYER_NAME], pid, Float:x, Float:y, Float:z, Float:x2, Float:y2, Float:z2, mess[128];
- GetPlayerName(playerid, name, sizeof(name));
- GetPlayerName(playerid, name2, sizeof(name2));
- if(!IsPlayerAdmin(playerid)) return SCM(playerid, RED, "You Are Not Admin!!! !!! !!!");
- if(sscanf(params, "uf", pid)) return SCM(playerid, YELLOW, "Usage /GOTO [ID]!!! !!! !!!");
- if(!IsPlayerConnected(pid)) return SCM(playerid, RED, "Player Doesn't Exist!!! !!! !!!");
- else
- {
- GetPlayerPos(playerid, x, y, z);
- GetPlayerPos(pid, x2, y2, z2);
- format(mess, sizeof(mess), "Admin: %s Was Teleported to You!!! !!! !!!", name);
- SendClientMessage(pid, YELLOW, mess);
- SetPlayerPos(playerid, x2, y2, z2);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment