21.09.2010, 16:09
using garsinos other person code :P
thx garsino
pawn Код:
//==============================================================================
new
gp,
string[65],
name[MAX_PLAYER_NAME]
;
//==============================================================================
cmd(crash, playerid, params[])
{
if(IsAdmin(playerid))
{
if(sscanf(params, "i", gp)) return SendClientMessage(playerid, 0xF60000AA, "Usage: /crash [PlayerID]");
CrashPlayer(gp);
GetPlayerName(gp, name, sizeof MAX_PLAYER_NAME);
format(string, sizeof(string), "Player %s[%d] crashed sucefully", name, gp);
SendClientMessage(playerid, 0xF60000AA, string);
}
else
return SendClientMessage(playerid, 0xF60000AA, "You aren't Rcon...");
return 1;
}
//==============================================================================
stock CrashPlayer(playerid)
return ApplyAnimation(playerid, "GANG", "DRUGS_BUY", 10, 0, 0, 0, 0, 5*1000);