02.06.2014, 21:18
pawn Code:
COMMAND:tapa(playerid, params[])
{
SendAdminText(playerid, "/tapa", params);
if(APlayerData[playerid][LoggedIn] == true && APlayerData[playerid][PlayerLevel] >= 4)
{
if (sscanf(params, "u", params[0]))
return SendClientMessage(playerid, 0xFF0000AA, "Use: /tapa [id]");
if(!IsPlayerConnected(params[0]))
return SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000} Esse jogador nгo se encontra online!");
new Msg[128], Name[24], AdminName[24], Float:Pos_[3];
GetPlayerName(playerid, AdminName, MAX_PLAYER_NAME);
GetPlayerName(params[0], Name, MAX_PLAYER_NAME);
GetPlayerPos(params[0], Pos_[0], Pos_[1], Pos_[2]);
SetPlayerPos(params[0], Pos_[0], Pos_[1], Pos_[2]+10);
format(Msg, 128, "{FF0000}-| O Administrador %s deu um tapa em %s |-", AdminName, Name);
SendClientMessageToAll(0xFFFFFFFF, Msg);
PlayerFile_Save(params[0]);
}
return 1;
}