22.10.2014, 18:05
pawn Код:
CMD:rape(playerid,params[])
{
new targetid, Float:x, Float:y, Float:z;
if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, -1, "USAGE: /rape [Part of name/Player ID]");
if(playerid == targetid) return SendClientMessage(playerid, -1, "You can't rape yourself");
if(targetid == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFFFFFFF,"{ff0000}[ERROR]: This player is not connected!");
GetPlayerPos(playerid,x,y,z);
if(IsPlayerInRangeOfPoint(targetid, 5.0, x,y,z))
{
new str[512];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name,sizeof(name));
new target[MAX_PLAYER_NAME];
GetPlayerName(targetid, target,sizeof(target));
format(str, sizeof(str), "{ff0000}You have raped %s",target);
SendClientMessage(playerid, 0xE01B1B, str);
ApplyAnimation(playerid, "MISC", "BITCH_SLAP", 0,0,0,0,0,0,0);
return 1;
}