pawn Код:
CMD:tapa(playerid) {
if(!IsPlayerAdmin( playerid) ) return SendClientMessage(playerid, -1, "Vocк nгo й admin rcon!");
new
Name[MAX_PLAYER_NAME],
pStr[78],
Float:X,
Float:Y,
Float:Z;
GetPlayerName(playerid, Name, MAX_PLAYER_NAME );
for ( new i = GetMaxPlayers(); i > -1; i-- ) {
if ( IsPlayerConnected(i) ) {
GetPlayerPos(i, X, Y, Z);
SetPlayerPos(i, X, Y, Z + 12);
}
}
format ( pStr, 78, "O Administrador %s deu um tapa em todos os jogadores!", Name );
SendClientMessageToAll(-1, pStr );
return true;
}
Ou
pawn Код:
if (strcmp("/tapa", cmdtext, true, 10) == 0) {
if(!IsPlayerAdmin( playerid) ) return SendClientMessage(playerid, -1, "Vocк nгo й admin rcon!");
new
Name[MAX_PLAYER_NAME],
pStr[78],
Float:X,
Float:Y,
Float:Z;
GetPlayerName(playerid, Name, MAX_PLAYER_NAME );
for ( new i = GetMaxPlayers(); i > -1; i-- ) {
if ( IsPlayerConnected(i) ) {
GetPlayerPos(i, X, Y, Z);
SetPlayerPos(i, X, Y, Z + 12);
}
}
format ( pStr, 78, "O Administrador %s deu um tapa em todos os jogadores!", Name );
SendClientMessageToAll(-1, pStr );
return true;
}