/slap rcon command
#3

I use this one:
pawn Код:
dcmd_drill(playerid,params[])
{
   new tmp[100],Index,Float:health;
   new damage;
   new id = strval(params);
   new string[128];
   tmp = strtok(params,Index);
   GetPlayerHealth(id,health);
   if(sscanf(params, "ud", id, damage)) return SendClientMessage(playerid,color,""#red"USAGE: "#green"/drill <id> <damage>");
   if(!IsPlayerConnected(id)) return SendClientMessage(playerid,color,""#red"This player "#green"isn't connected");
   SetPlayerHealth(id,health-damage);
   for(new v; v < MAX_PLAYERS; v++) PlayerPlaySound(v,1133,0.0,0.0,0.0);
   format(string,sizeof(string),""#red"[ADMIN]: "#ice"%s (id: %d) has drilled "#green"%s (id: %d) [Damage taken: %d | Health left: %d]",GetMyName(playerid),playerid,GetMyName(id),id,floatround(damage),floatround(health-damage));
   return SendClientMessageForAll(color,string);
}

It's as same as slap one, just the name that's different. Do the needed changes, since it was on my script
Reply


Messages In This Thread
/slap rcon command - by hadzx - 25.01.2011, 20:22
Re: /slap rcon command - by hadzx - 25.01.2011, 21:00
Re: /slap rcon command - by blackwave - 25.01.2011, 21:02
Re: /slap rcon command - by Mokerr - 25.01.2011, 22:01
Re: /slap rcon command - by hadzx - 25.01.2011, 22:31
Re: /slap rcon command - by Grim_ - 25.01.2011, 22:41
Re: /slap rcon command - by hadzx - 25.01.2011, 22:49
Re: /slap rcon command - by Scenario - 25.01.2011, 23:04
Re: /slap rcon command - by Mokerr - 25.01.2011, 23:20
Re: /slap rcon command - by Steven82 - 26.01.2011, 03:46

Forum Jump:


Users browsing this thread: 3 Guest(s)