errors
#2

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;
}
Reply


Messages In This Thread
errors - by Glossy42O - 22.10.2014, 18:01
Re: errors - by IceBilizard - 22.10.2014, 18:05
Re: errors - by Glossy42O - 22.10.2014, 18:10
Re: errors - by IceBilizard - 22.10.2014, 18:13
Re: errors - by Glossy42O - 22.10.2014, 18:17
Re: errors - by IceBilizard - 22.10.2014, 18:20
Re: errors - by gurmani11 - 22.10.2014, 18:23
Re: errors - by Glossy42O - 22.10.2014, 18:26
Re: errors - by gurmani11 - 22.10.2014, 18:29
Re: errors - by Glossy42O - 22.10.2014, 18:31

Forum Jump:


Users browsing this thread: 1 Guest(s)