17.11.2013, 07:20
You have given out too much Reputation in the last 24 hours, try again later.
Sorry Cant Rep+
Sorry Cant Rep+
Код:
[10:15:42] Cool Working says: Wow [10:15:46] Cool Working says: thanks man its working [10:15:51] You can't do this whilst your off Duty! [10:15:57] You have clocked in to Admin Duty, you are no longer in Role play Mode. [10:15:57] {AA3333}Admin Duty{FFFF00}: Cool Working has clocked in and is now on duty. [10:15:59] AdmCmd: Cool Working was slapped by Cool Working [10:16:08] Cool Working says: :) Rep+ed
Code:
pawn Код:
CMD:aslap(playerid, params[])
{
if (PlayerInfo[playerid][pAdmin] >=2)
{
if(PlayerInfo[playerid][pAdmin] >= 2 && PlayerInfo[playerid][pAdminDuty] != 1) return SendClientMessageEx(playerid, COLOR_GRAD2, "You can't do this whilst your off Duty!");
new string[128], giveplayerid;
if(sscanf(params, "u", giveplayerid)) return SendClientMessageEx(playerid, COLOR_GREY, "USAGE: /aslap [player]");
new Float:shealth;
new Float:slx, Float:sly, Float:slz;
if(IsPlayerConnected(giveplayerid))
{
GetPlayerHealth(giveplayerid, shealth);
SetPlayerHealth(giveplayerid, shealth-5);
GetPlayerPos(giveplayerid, slx, sly, slz);
SetPlayerPos(giveplayerid, slx, sly, slz+5);
PlayerPlaySound(giveplayerid, 1130, slx, sly, slz+5);
format(string, sizeof(string), "AdmCmd: %s was slapped by %s",GetPlayerNameEx(giveplayerid), GetPlayerNameEx(playerid));
ABroadCast(COLOR_LIGHTRED,string,2);
}
}
else
{
SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
}
return 1;
}