[Ajuda] Comando: /Tapa
#2

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;
}
Reply


Messages In This Thread
Comando: /Tapa - by Gabriel Santana - 25.08.2012, 13:34
Re: Comando: /Tapa - by Jason` - 25.08.2012, 13:37
Re: Comando: /Tapa - by Gabriel Santana - 25.08.2012, 13:38
Re: Comando: /Tapa - by Gabriel Santana - 25.08.2012, 13:41
Re: Comando: /Tapa - by Bieeel_Cwb - 25.08.2012, 13:46

Forum Jump:


Users browsing this thread: 2 Guest(s)