25.01.2011, 21:02
I use this one:
It's as same as slap one, just the name that's different. Do the needed changes, since it was on my script
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