29.04.2018, 15:16
PHP код:
new Used[MAX_PLAYERS];
if(PRESSED(KEY_JUMP))
{
Used[playerid] += 1;
if(Used[playerid] >= 3)
{
new string[100];
format(string, sizeof(string), "*** %s (ID:%d) has used the JUMP KEY more than 3 times", GetName(playerid), playerid);
SendClientMessageToAll(-1, string);
}
}
Код:
stock GetName(playerid) { new Name[MAX_PLAYER_NAME]; GetPlayerName(playerid,Name,MAX_PLAYER_NAME); return Name; }