[Ajuda] alquem converte esse comando tapa?
#10

Quote:
Originally Posted by vitere
Посмотреть сообщение
...
nгo vai funcionar

pawn Код:
if (strcmp(cmdtext, "/tapa", true) == 0) {
    new iddocmd,
        Float: x, // Coordenada X
        Float: y, // Coordenada y
        Float: z, // Coordenada z
        tmp[256],
        string[128],
        giveplayer[24];

    if (IsPlayerConnected(playerid)) {
        tmp = strtok(cmdtext, idx);
        if (!strlen(tmp)) {
            SendClientMessage(playerid, -1, "{FF0000}USE: /tapa [id]");
            return true;
        }
       
        iddocmd = strval(tmp);
        if (IsPlayerConnected(iddocmd)) {
            if (iddocmd != INVALID_PLAYER_ID) {
                GetPlayerName(iddocmd, giveplayer, sizeof(giveplayer));
                GetPlayerName(playerid, sendername, sizeof(sendername));
           
                format(string,sizeof(string),"%s deu um tapa em %s .", sendername, giveplayer);
                SendClientMessageToAll(-1,string);
                GetPlayerPos(iddocmd, x, y, z);
                SetPlayerPos(iddocmd, x, y, z + 15);
            }
        }
    }
    return true;
}
Reply


Messages In This Thread
alquem converte esse comando tapa? - by Weslly Stronda - 07.02.2013, 14:26
Re: alquem converte esse comando tapa? - by Weslly Stronda - 07.02.2013, 14:31
Re: alquem converte esse comando tapa? - by Nill.Oliveira - 07.02.2013, 14:33
Re: alquem converte esse comando tapa? - by Weslly Stronda - 07.02.2013, 14:40
Re: alquem converte esse comando tapa? - by smiiir - 07.02.2013, 14:42
Re: alquem converte esse comando tapa? - by Weslly Stronda - 07.02.2013, 14:46
Re: alquem converte esse comando tapa? - by Nill.Oliveira - 07.02.2013, 14:48
Re: alquem converte esse comando tapa? - by Weslly Stronda - 07.02.2013, 14:59
Re: alquem converte esse comando tapa? - by vitere - 07.02.2013, 15:08
Re: alquem converte esse comando tapa? - by Sky™ - 07.02.2013, 15:10

Forum Jump:


Users browsing this thread: 1 Guest(s)