[Ajuda] Dъvidas.
#2

no comando tapa falta vocк declarar a variбvel ID.
pawn Code:
command(tapa, playerid, params[])
{
     if(PlayerInfo[playerid][pAdmin] == 0)return SendClientMessage(playerid, -1, "{FF0000}[ x ] Vocк nгo tem permissгo para usar esse comando!");

      new ID;
     if(sscanf(params, "u", ID)) return SendClientMessage(playerid,-1,"{CAFF70}[ > ] Use: /tapa [ID]");
     if(!IsPlayerConnected(ID))return SendClientMessage(playerid,-1,"{FF0000}[ x ] Jogador(a) estб conectado(a)!");
     new Float:Pos[3];
     GetPlayerPos(ID, Pos[0], Pos[1], Pos[2]), SetPlayerPos(ID, Pos[0], Pos[1], Pos[2]+20);
     format(dstring, sizeof dstring ,"[Admin] %s vocк levou um tapa do(a) administrador(a) %s.", Nome(ID), Nome(playerid));
     SendClientMessage(playerid, Azul,dstring);
     return true;
}
faz assim /\
Reply


Messages In This Thread
Dъvidas. - by Ts3 - 17.07.2014, 15:19
Re: Dъvidas. - by Duun - 17.07.2014, 15:26
Re: Dъvidas. - by Ts3 - 17.07.2014, 15:41
Re: Dъvidas. - by MultiKill - 17.07.2014, 15:45
Re: Dъvidas. - by ViniBorn - 17.07.2014, 16:47
Re: Dъvidas. - by Ts3 - 17.07.2014, 19:37
Re: Dъvidas. - by ViniBorn - 17.07.2014, 19:52
Re: Dъvidas. - by PT - 17.07.2014, 20:00
Re: Dъvidas. - by Schocc - 17.07.2014, 20:05

Forum Jump:


Users browsing this thread: 4 Guest(s)