Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Admin Script v0.1 by lewis1682 - DO NOT REMOVE ANY CREDITS
- #define FILTERSCRIPT
- #include <a_samp>
- #include <ZCMD>
- #include <sscanf2>
- #include <bud>
- #undef MAX_PLAYERS
- #define MAX_PLAYERS 15
- #define MIN_CHAR 4
- #define MAX_CHAR 10
- #define ADMIN_PASS "jokeradmin"
- #define COLOR_ADMIN 0xA188FFFF
- #define COLOR_RED 0xFF0000FF
- #define COLOR_GREY 0x808080FF
- #define COLOR_YELLOW 0xFFFF00FF
- enum pData
- {
- Admin
- };
- new IsAdmin[MAX_PLAYERS][pData];
- new warns[MAX_PLAYERS];
- new bool:muted[MAX_PLAYERS];
- new Float:posx[MAX_PLAYERS];
- new Float:posy[MAX_PLAYERS];
- new Float:posz[MAX_PLAYERS];
- new bool:spectating[MAX_PLAYERS];
- new bool:godmode[MAX_PLAYERS];
- forward KickPublic(playerid);
- public KickPublic(playerid) { Kick(playerid); }
- forward BanPublic(playerid);
- public BanPublic(playerid) {Ban(playerid); }
- stock KickWithMessage(playerid, message[])
- {
- TogglePlayerSpectating(playerid,true);
- SendClientMessageToAll(COLOR_RED, message);
- SetTimerEx("KickPublic", 1000, 0, "d", playerid); //Delay of 1 second before kicking the player so he recieves the message
- }
- stock BanWithMessage(playerid, message[])
- {
- TogglePlayerSpectating(playerid,true);
- SendClientMessageToAll(COLOR_RED, message);
- SetTimerEx("BanPublic", 1000, 0, "d", playerid);
- }
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print("Admin Script V0.1 by lewis1682 - Loaded -");
- print("--------------------------------------\n");
- BUD::Setting( opt.Database, "Players.db" );
- BUD::Setting(opt.Asynchronous,true);
- BUD::Setting(opt.KeepAliveTime,3000);
- BUD::Initialize();
- BUD::VerifyColumn( "Admin" , BUD::TYPE_NUMBER,0);
- return 1;
- }
- public OnFilterScriptExit()
- {
- print("\n--------------------------------------");
- print("Admin Script V0.1 by lewis1682 - Unloaded");
- print("--------------------------------------\n");
- return 1;
- }
- CMD:duty(playerid,params[])
- {
- new pass[64],string[86],pName[MAX_PLAYER_NAME+1];
- new password[11];
- password = ADMIN_PASS; //change to what you like!
- if(IsAdmin[playerid][Admin] == 1) return SendClientMessage(playerid,COLOR_GREY,"You are already on duty as admin");
- if(sscanf(params,"s",pass)) return SendClientMessage(playerid,COLOR_RED,"USAGE: /duty [Password]");
- GetPlayerName(playerid,pName,sizeof(pName));
- if(strcmp(password,pass)== 0)
- {
- format(string,sizeof(string),"Admin: %s is now on duty!",pName);
- SendClientMessageToAll(COLOR_YELLOW,string);
- SendClientMessage(playerid,COLOR_GREY,"You are now on admin duty /acmds to see a list of admin commands");
- SetPlayerColor(playerid,COLOR_ADMIN);
- IsAdmin[playerid][Admin] = 1;
- AllowPlayerTeleport( playerid, 1 );
- return 1;
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"Wrong password!");
- }
- return 1;
- }
- CMD:kick(playerid,params[])
- {
- if(IsAdmin[playerid][Admin] == 0) return SendClientMessage(playerid,COLOR_RED,"You are not admin!");
- new id, reason[68], pName[MAX_PLAYER_NAME+1],aName[MAX_PLAYER_NAME+1],string[MAX_PLAYER_NAME+1+68+MAX_PLAYER_NAME+1];
- if(sscanf(params,"us",id,reason)) return SendClientMessage(playerid,COLOR_RED,"USAGE: /kick [ID] [Reason]");
- if(!IsPlayerConnected(id)) return SendClientMessage(playerid,COLOR_RED,"This player is not connected");
- GetPlayerName(id,pName,sizeof(pName));
- GetPlayerName(playerid,aName,sizeof(aName));
- format(string,sizeof(string),"[ADMIN CMD] %s was kicked by %s. Reason: %s",pName,aName,reason);
- KickWithMessage(id,string);
- new astring[MAX_PLAYER_NAME+1+68];
- format(astring,sizeof(astring),"You have kicked player %s",pName);
- new dstring[128+1];
- format(dstring,sizeof(dstring),"You were kicked by %s.\nThe given reason was: %s.",aName,reason);
- ShowPlayerDialog(id,3,DIALOG_STYLE_MSGBOX,"You were kicked",dstring,"Okay","");
- PlayerPlaySound(id,1137,0,0,0);
- SendClientMessage(playerid,COLOR_GREY,astring);
- return 1;
- }
- CMD:ban(playerid,params[])
- {
- if(IsAdmin[playerid][Admin] == 0) return SendClientMessage(playerid,COLOR_RED,"You are not admin!");
- new id, reason[68], pName[MAX_PLAYER_NAME+1],aName[MAX_PLAYER_NAME+1],string[MAX_PLAYER_NAME+1+68+MAX_PLAYER_NAME+1];
- if(sscanf(params,"us",id,reason)) return SendClientMessage(playerid,COLOR_RED,"USAGE: /ban [ID] [Reason]");
- if(!IsPlayerConnected(id)) return SendClientMessage(playerid,COLOR_RED,"This player is not connected");
- GetPlayerName(id,pName,sizeof(pName));
- GetPlayerName(playerid,aName,sizeof(aName));
- format(string,sizeof(string),"[ADMIN CMD] %s was banned by %s. Reason: %s",pName,aName,reason);
- BanWithMessage(id,string);
- new astring[MAX_PLAYER_NAME+1+68];
- format(astring,sizeof(astring),"You have banned player %s",pName);
- new dstring[128+1];
- format(dstring,sizeof(dstring),"You were banned by %s.\nThe given reason was: %s.",aName,reason);
- ShowPlayerDialog(id,3,DIALOG_STYLE_MSGBOX,"You were banned",dstring,"Okay","");
- PlayerPlaySound(id,1137,0,0,0);
- SendClientMessage(playerid,COLOR_GREY,astring);
- return 1;
- }
- CMD:warn(playerid,params[])
- {
- if(IsAdmin[playerid][Admin] == 0) return SendClientMessage(playerid,COLOR_RED,"You are not admin!");
- new id, reason[68], pName[MAX_PLAYER_NAME+1],aName[MAX_PLAYER_NAME+1],string[MAX_PLAYER_NAME+1+68+MAX_PLAYER_NAME+1];
- if(sscanf(params,"us",id,reason)) return SendClientMessage(playerid,COLOR_RED,"USAGE: /warn [ID] [Reason]");
- if(!IsPlayerConnected(id)) return SendClientMessage(playerid,COLOR_RED,"This player is not connected");
- GetPlayerName(id,pName,sizeof(pName));
- GetPlayerName(playerid,aName,sizeof(aName));
- warns[id]++;
- if(warns[id] == 1) format(string,sizeof(string),"[ADMIN CMD]%s was warned by %s for: %s (1/3)",pName,aName,reason);
- if(warns[id] == 2) format(string,sizeof(string),"[ADMIN CMD]%s was warned by %s for: %s (2/3)",pName,aName,reason);
- if(warns[id] == 3)
- {
- format(string,sizeof(string),"[ADMIN CMD]%s was warned by %s for: %s (3/3)",pName,aName,reason);
- new wstring[MAX_PLAYER_NAME+1+68];
- format(wstring,sizeof(wstring),"[ADMIN BOT] %s was automatically kicked for having 3 warnings!",pName);
- KickWithMessage(id,wstring);
- }
- SendClientMessageToAll(COLOR_RED,string);
- return 1;
- }
- CMD:goto(playerid,params[])
- {
- if(IsAdmin[playerid][Admin] == 0) return SendClientMessage(playerid,COLOR_RED,"You are not admin!");
- new id;
- new Float:x,Float:y,Float:z;
- if(sscanf(params,"u",id)) return SendClientMessage(playerid,COLOR_RED,"USAGE: /goto [id]");
- if(!IsPlayerConnected(id)) return SendClientMessage(playerid,COLOR_RED,"This player is not connected");
- GetPlayerPos(id,Float:x,Float:y,Float:z);
- SendClientMessage(playerid,COLOR_GREY,"You have teleported!");
- SetPlayerPos(playerid,Float:x,Float:y,Float:z);
- return 1;
- }
- CMD:get(playerid,params[])
- {
- if(IsAdmin[playerid][Admin] == 0) return SendClientMessage(playerid,COLOR_RED,"You are not admin!");
- new id;
- new Float:x,Float:y,Float:z;
- if(sscanf(params,"u",id)) return SendClientMessage(playerid,COLOR_RED,"USAGE: /get [id]");
- if(!IsPlayerConnected(id)) return SendClientMessage(playerid,COLOR_RED,"This player is not connected");
- GetPlayerPos(playerid,Float:x,Float:y,Float:z);
- SendClientMessage(id,COLOR_GREY,"You have teleported!");
- SetPlayerPos(id,Float:x,Float:y,Float:z);
- return 1;
- }
- CMD:mute(playerid,params[])
- {
- if(IsAdmin[playerid][Admin] == 0) return SendClientMessage(playerid,COLOR_RED,"You are not admin!");
- new id, reason[68], pName[MAX_PLAYER_NAME+1],aName[MAX_PLAYER_NAME+1],string[MAX_PLAYER_NAME+1+68+MAX_PLAYER_NAME+1];
- if(sscanf(params,"us",id,reason)) return SendClientMessage(playerid,COLOR_RED,"USAGE: /mute [ID] [Reason]");
- if(!IsPlayerConnected(id)) return SendClientMessage(playerid,COLOR_RED,"This player is not connected");
- if(muted[id] == true) return SendClientMessage(playerid,COLOR_GREY,"This player is already muted!");
- GetPlayerName(playerid,aName,sizeof(aName));
- GetPlayerName(id,pName,sizeof(pName));
- format(string,sizeof(string),"[ADMIN CMD] %s was muted by %s. Reason: %s",pName,aName,reason);
- SendClientMessageToAll(COLOR_RED,string);
- SendClientMessage(id,COLOR_RED,"You are muted and cannot speak!");
- SendClientMessage(playerid,COLOR_GREY,"Player muted!");
- muted[id] = true;
- return 1;
- }
- CMD:unmute(playerid,params[])
- {
- if(IsAdmin[playerid][Admin] == 0) return SendClientMessage(playerid,COLOR_RED,"You are not admin!");
- new id, pName[MAX_PLAYER_NAME+1],aName[MAX_PLAYER_NAME+1],string[MAX_PLAYER_NAME+1+68+MAX_PLAYER_NAME+1];
- if(sscanf(params,"u",id)) return SendClientMessage(playerid,COLOR_RED,"USAGE: /unmute [ID]");
- if(!IsPlayerConnected(id)) return SendClientMessage(playerid,COLOR_RED,"This player is not connected");
- if(muted[id] == false) return SendClientMessage(playerid,COLOR_GREY,"This player is not muted!");
- GetPlayerName(playerid,aName,sizeof(aName));
- GetPlayerName(id,pName,sizeof(pName));
- format(string,sizeof(string),"[ADMIN CMD] %s was unmuted by %s",pName,aName);
- SendClientMessageToAll(COLOR_RED,string);
- muted[id] = false;
- SendClientMessage(id,COLOR_GREY,"You are unmuted!");
- SendClientMessage(playerid,COLOR_GREY,"Player unmuted!");
- return 1;
- }
- CMD:slap(playerid,params[])
- {
- if(IsAdmin[playerid][Admin] == 0) return SendClientMessage(playerid,COLOR_RED,"You are not admin!");
- new id;
- if(sscanf(params,"u",id)) return SendClientMessage(playerid,COLOR_RED,"USAGE: /slap [ID]");
- if(!IsPlayerConnected(id)) return SendClientMessage(playerid,COLOR_RED,"This player is not connected");
- new Float:X,Float:Y,Float:Z;
- GetPlayerPos(id,X,Y,Z);
- SetPlayerPos(id,X,Y,Z+4);
- PlayerPlaySound(id,1190,X,Y,Z+2);
- SendClientMessage(playerid,COLOR_GREY,"Player slaped");
- SendClientMessage(id,COLOR_RED,"You were slaped by an admin");
- return 1;
- }
- CMD:say(playerid,params[])
- {
- if(IsAdmin[playerid][Admin] == 0) return SendClientMessage(playerid,COLOR_RED,"You are not admin!");
- new message[128],string[128],pName[MAX_PLAYER_NAME+1];
- if(sscanf(params,"s",message)) return SendClientMessage(playerid,COLOR_RED,"USAGE: /say [Message]");
- GetPlayerName(playerid,pName,sizeof(pName));
- format(string,sizeof(string),"[ADMIN]{FFFF00} %s(%i):{FF0000} %s",pName,playerid,message);
- SendClientMessageToAll(COLOR_RED,string);
- return 1;
- }
- CMD:spec(playerid,params[])
- {
- if(IsAdmin[playerid][Admin] == 0) return SendClientMessage(playerid,COLOR_RED,"You are not admin!");
- new id;
- if(sscanf(params,"u",id)) return SendClientMessage(playerid,COLOR_RED,"USAGE: /spec [ID]");
- if(!IsPlayerConnected(id)) return SendClientMessage(playerid,COLOR_RED,"This player is not connected");
- GetPlayerPos(playerid,posx[playerid],posy[playerid],posz[playerid]);
- TogglePlayerSpectating(playerid,true);
- PlayerSpectatePlayer(playerid,id);
- SendClientMessage(playerid,COLOR_GREY,"Now spectating player");
- spectating[playerid] = true;
- return 1;
- }
- CMD:specoff(playerid,params[])
- {
- if(IsAdmin[playerid][Admin] == 0) return SendClientMessage(playerid,COLOR_RED,"You are not admin!");
- if(spectating[playerid] == false) return SendClientMessage(playerid,COLOR_RED,"You are not spectating!");
- TogglePlayerSpectating(playerid,false);
- SetPlayerPos(playerid,posx[playerid],posy[playerid],posz[playerid]);
- spectating[playerid] = false;
- SetPlayerPos(playerid,posx[playerid],posy[playerid],posz[playerid]);
- return 1;
- }
- CMD:givemoney(playerid,params[])
- {
- if(IsAdmin[playerid][Admin] == 0) return SendClientMessage(playerid,COLOR_RED,"You are not admin!");
- new id,ammount,aName[MAX_PLAYER_NAME+1],string[126];
- if(sscanf(params,"ui",id,ammount)) return SendClientMessage(playerid,COLOR_RED,"USAGE: /givemoney [ID] [ammount]");
- if(!IsPlayerConnected(id)) return SendClientMessage(playerid,COLOR_RED,"This player is not connected");
- GetPlayerName(playerid,aName,sizeof(aName));
- GivePlayerMoney(id,ammount);
- format(string,sizeof(string),"[ADMIN CMD] %s has given you %i",aName,ammount);
- SendClientMessage(id,COLOR_ADMIN,string);
- SendClientMessage(playerid,COLOR_GREY,"The player recieved the money!");
- return 1;
- }
- CMD:godmode(playerid,params[])
- {
- if(IsAdmin[playerid][Admin] == 0) return SendClientMessage(playerid,COLOR_RED,"You are not admin!");
- if(godmode[playerid] == true)
- {
- SetPlayerHealth(playerid,100.0);
- godmode[playerid] = false;
- return SendClientMessage(playerid,COLOR_GREY,"God mode has been switched off!");
- }
- SetPlayerHealth(playerid,1000000000);
- SendClientMessage(playerid,COLOR_GREY,"You are now in god mode!");
- godmode[playerid] = true;
- return 1;
- }
- CMD:id(playerid,params[])
- {
- new id,pName[MAX_PLAYER_NAME+1],string[MAX_PLAYER_NAME+1+68];
- if(sscanf(params,"u",id)) return SendClientMessage(playerid,COLOR_RED,"USAGE: /id [ID]");
- if(!IsPlayerConnected(id)) return SendClientMessage(playerid,COLOR_RED,"This player is not connected");
- GetPlayerName(id,pName,sizeof(pName));
- format(string,sizeof(string),"** %s(%i) **",pName,id);
- return 1;
- }
- CMD:register(playerid,params[])
- {
- new pass[128];
- new name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,sizeof(name));
- if(sscanf(params,"s[128]",pass)) return SendClientMessage(playerid,-1,"USAGE: /register [password]");
- if(BUD::IsNameRegistered(name) == true) return SendClientMessage(playerid,-1,"You're already register!");
- if(strlen(pass) < MIN_CHAR || strlen(pass) > MAX_CHAR)
- {
- new string[128];
- format(string,sizeof(string),"Password be min %d and max %d char",MIN_CHAR,MAX_CHAR);
- SendClientMessage(playerid,-1,string);
- }
- else
- {
- BUD::RegisterName(name,pass);
- SendClientMessage(playerid,-1,"You successfull register");
- new userid = BUD::GetNameUID(name);
- BUD::MultiSet(userid, "i", "Admin", 0);
- }
- return 1;
- }
- CMD:login(playerid,params[])
- {
- new pass[128];
- new name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,sizeof(name));
- if(sscanf(params,"s[128]",pass)) return SendClientMessage(playerid,-1,"USAGE: /login [login]");
- if(GetPVarInt(playerid,"Logged") == 1) return SendClientMessage(playerid,-1,"You're already logged in");
- if(BUD::IsNameRegistered(name) == false) return SendClientMessage(playerid,-1,"You're not register!");
- if(strlen(pass) < MIN_CHAR || strlen(pass) > MAX_CHAR)
- {
- new string[128];
- format(string,sizeof(string),"Password be min %d and max %d char",MIN_CHAR,MAX_CHAR);
- SendClientMessage(playerid,-1,string);
- return 0;
- }
- else
- {
- if(BUD::CheckAuth(name,pass) == true)
- {
- SendClientMessage(playerid,-1,"You successfull logged in");
- SetPVarInt(playerid,"Logged",1);
- new userid = BUD::GetNameUID(name);
- BUD::MultiGet(userid,"i","Admin",Admin);
- IsAdmin[playerid][Admin] = Admin;
- return 1;
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"Invalid password");
- }
- }
- return 1;
- }
- CMD:a(playerid,params[])
- {
- if(IsAdmin[playerid][Admin] == 0) return SendClientMessage(playerid,COLOR_RED,"You are not admin!");
- new message[126],pName[MAX_PLAYER_NAME+1],string[MAX_PLAYER_NAME+1+126];
- if(sscanf(params,"s",message)) return SendClientMessage(playerid,COLOR_RED,"USAGE: /a [Message]");
- GetPlayerName(playerid,pName,sizeof(pName));
- format(string,sizeof(string),"[ADMIN CHAT] %s: %s",pName,message);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(!IsPlayerConnected(i)) continue;
- if(IsAdmin[i][Admin] == 1) return SendClientMessage(i,COLOR_RED,string);
- }
- return 1;
- }
- CMD:sethealth(playerid,params[])
- {
- if(IsAdmin[playerid][Admin] == 0) return SendClientMessage(playerid,COLOR_RED,"You are not admin!");
- new id,health;
- if(sscanf(params,"uu",id,health)) return SendClientMessage(playerid,COLOR_RED,"USAGE: /sethealth [ID] [Health]");
- SetPlayerHealth(id,health);
- SendClientMessage(playerid,COLOR_GREY,"Players health has been set");
- SendClientMessage(id,COLOR_RED,"An admin has changed your health level");
- return 1;
- }
- CMD:setarmour(playerid,params[])
- {
- if(IsAdmin[playerid][Admin] == 0) return SendClientMessage(playerid,COLOR_RED,"You are not admin!");
- new id,health;
- if(sscanf(params,"uu",id,health)) return SendClientMessage(playerid,COLOR_RED,"USAGE: /setarmour [ID] [Health]");
- SetPlayerArmour(id,health);
- SendClientMessage(playerid,COLOR_GREY,"Players armour has been set");
- SendClientMessage(id,COLOR_RED,"An admin has changed your armour level");
- return 1;
- }
- CMD:acmds(playerid,params[])
- {
- if(IsAdmin[playerid][Admin] == 0) return SendClientMessage(playerid,COLOR_RED,"You are not admin!");
- SendClientMessage(playerid,COLOR_GREY,"/kick [ID] [Reason] To kick a player from the server");
- SendClientMessage(playerid,COLOR_GREY,"/ban [ID] [Reason] Bans a player from the server");
- SendClientMessage(playerid,COLOR_GREY,"/warn [ID] [Reason] Warns a player, players are kicked after 3 warnings");
- SendClientMessage(playerid,COLOR_GREY,"/goto [ID] Teleports you to a selected player");
- SendClientMessage(playerid,COLOR_GREY,"/get [ID] Teleports the player to you");
- SendClientMessage(playerid,COLOR_GREY,"/mute [ID] [Reason] Mutes a player from the chat with a reason");
- SendClientMessage(playerid,COLOR_GREY,"/unmute [ID] Unmutes the player");
- SendClientMessage(playerid,COLOR_GREY,"/slap [ID] Will slap a player on the Z axis. Will also slap a player out of a car");
- SendClientMessage(playerid,COLOR_GREY,"/say [Message] Shows a message to all players");
- SendClientMessage(playerid,COLOR_GREY,"/spec [ID] Spectates the selected player");
- SendClientMessage(playerid,COLOR_GREY,"/specoff Stops you spectating");
- SendClientMessage(playerid,COLOR_GREY,"/givemoney [ID] [Ammount] Gives the player a certain amount of money");
- SendClientMessage(playerid,COLOR_GREY,"/godmode Toggles your godmode on and off");
- SendClientMessage(playerid,COLOR_GREY,"/a [Message] Admin chat, players cannont see this only admin");
- SendClientMessage(playerid,COLOR_GREY,"/sethealth [ID] [Health] Sets a players health, 1000000 will make them godmode");
- SendClientMessage(playerid,COLOR_GREY,"/setarmour [ID] [Armour] Sets the players armour level");
- SendClientMessage(playerid,COLOR_GREY,"/acmds shows this list");
- return 1;
- }
- CMD:credits(playerid,params[])
- {
- SendClientMessage(playerid,COLOR_YELLOW,"Admin Scripts made by - lewis1682");
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- new pName[MAX_PLAYER_NAME+1], string[MAX_PLAYER_NAME+1+128];
- GetPlayerName(playerid,pName,sizeof(pName));
- format(string,sizeof(string),"** %s has joined the server **",pName);
- SendClientMessageToAll(COLOR_GREY,string);
- warns[playerid] = 0;
- muted[playerid] = false;
- spectating[playerid] = false;
- godmode[playerid] = false;
- //loading
- SetPVarInt(playerid,"Logged",0);
- if(BUD::IsNameRegistered(pName) == false)
- {
- SendClientMessage(playerid,COLOR_RED,"You are not register.! please use /register");
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"You are register.! please use /login");
- }
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- new pName[MAX_PLAYER_NAME+1],string[MAX_PLAYER_NAME+1+128];
- GetPlayerName(playerid,pName,sizeof(pName));
- switch(reason)
- {
- case 0: format(string,sizeof(string),"** %s has left the server (Timeout) **",pName);
- case 1: format(string,sizeof(string),"** %s has left the server (Leaving) **",pName);
- case 2: format(string,sizeof(string),"** %s has left the server (Kicked) **",pName);
- }
- //saving
- if(BUD::IsNameRegistered(pName) == true)
- {
- new userid = BUD::GetNameUID(pName);
- BUD::MultiSet(userid,"i","Admin",IsAdmin[playerid][Admin]);
- }
- //other
- warns[playerid] = 0;
- muted[playerid] = false;
- spectating[playerid] = false;
- godmode[playerid] = false;
- SetPVarInt(playerid,"Logged",0);
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- if(muted[playerid] == true)
- {
- SendClientMessage(playerid,COLOR_RED,"You are muted and cannot speak in the main chat!");
- return 0;
- }
- return 1;
- }
- public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ)
- {
- if(IsAdmin[playerid][Admin] == 0) return 0;
- SetPlayerPosFindZ(playerid, fX, fY, fZ);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement