25.08.2012, 13:37
pawn Код:
CMD:tapa(playerid, params[])
{
new name[MAX_PLAYER_NAME], ID, string[120];
if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, -1,"[ERRO] Voce nao e admin ou nao tem level suficiente.");
if(sscanf(params, "u", ID)) return SendClientMessage(playerid,-1,"[USE] /tapa [id]");
if(!IsPlayerConnected(ID)) return 1;
new Float:c[3];
GetPlayerPos(ID,c[0],c[1],c[2]);
SetPlayerPos(ID,c[0],c[1],c[2]+15);
GetPlayerName(ID, name, sizeof(name));
format(string, sizeof(string), "[NomeSV]: %s deu um tapa em %s.", name);
SendClientMessageToAll(Cor_Roxo, string);
return 1;
}