How to slap ?
#6

Код:
CMD:slap(playerid,params[])
{
	if(pInfo[playerid][pAdminLevel] >= 2 || IsPlayerAdmin(playerid))
	{
	    new targetid,string[128];
		if(sscanf(params, "u", targetid)) return  SendClientMessage(playerid,-1,""chat" /slap [playerid]");
		if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");

		new Float:posxx[3];
		GetPlayerPos(targetid, posxx[0], posxx[1], posxx[2]);
		SetPlayerPos(targetid, posxx[0], posxx[1], posxx[2]+40);

		if(IsPlayerAdmin(playerid))
		{
	   		format(string, sizeof(string), "*"COL_RED" RCON Admin has slapped %s",PlayerName(targetid));
			 SendMessageToAllAdmins(string,-1);

		}
		else
		{
			format(string, sizeof(string), "*"COL_RED" %s %s has slapped %s",GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid));
			 SendMessageToAllAdmins(string,-1);
		}
	}
	else {
		SendClientMessage(playerid,-1,"*"COL_RED" You do not have the right admin permissions for this command!");
	}
	return 1;
}
Replace the variables with your own
Reply


Messages In This Thread
How to slap ? - by Glossy42O - 20.07.2015, 13:31
Re: How to slap ? - by DaniceMcHarley - 20.07.2015, 13:33
Re: How to slap ? - by SoFahim - 20.07.2015, 13:33
Re: How to slap ? - by Jstylezzz - 20.07.2015, 13:33
Re: How to slap ? - by FreddiewJO - 20.07.2015, 13:36
Re: How to slap ? - by Crystallize - 20.07.2015, 14:23
Re: How to slap ? - by suni - 24.07.2015, 19:46
Re: How to slap ? - by Skillex333 - 24.07.2015, 19:54
Re: How to slap ? - by TenTen - 24.07.2015, 21:49
Re: How to slap ? - by XBrianX - 24.07.2015, 23:46

Forum Jump:


Users browsing this thread: 2 Guest(s)