[PEDIDO]4 Comandos e 1 Mapa
#7

como agente converso, aqui estб o comando /ir, bem basico, adapte ao seu jeito:

pawn Код:
CMD:ir(playerid, params[])
{
    new ID;
    new String[128];
    if(sscanf(params, "u", ID))
    {
        SendClientMessage(playerid, -1, "Use /ir [ID]");
        return 0;
    }
    if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, -1, "[ERRO] ID invalido");
    new Float:Pos[3];
    GetPlayerPos(ID, Pos[0], Pos[1], Pos[2]);
    SetPlayerPos(playerid, Pos[0]+2, Pos[1]+2, Pos[2]+2);
    format(String, sizeof(String), "O Admin %s veio atй vocк!", Nome(playerid));
    SendClientMessage(ID, -1, String);
    format(String, sizeof(String), "Vocк foi atй o Jogador %s [ID: %d]", Nome(ID), ID);
    SendClientMessage(playerid, -1, String);
    return 1;
}

stock Nome(playerid)
{
    new pnome[24];
    GetPlayerName(playerid, pnome, 24);
    return pnome;
}
de base usei meu FS de Admin q ta na minha assinatura
Reply


Messages In This Thread
[PEDIDO]4 Comandos e 1 Mapa - by JDesigner - 23.02.2012, 18:03
Re: [PEDIDO]4 Comandos e 1 Mapa - by Troll Face - 23.02.2012, 18:11
AW: [PEDIDO]4 Comandos e 1 Mapa - by JDesigner - 23.02.2012, 18:24
Re: AW: [PEDIDO]4 Comandos e 1 Mapa - by Felipe_Freeze - 23.02.2012, 20:04
Re: [PEDIDO]4 Comandos e 1 Mapa - by kinhobryant - 23.02.2012, 20:28
AW: Re: AW: [PEDIDO]4 Comandos e 1 Mapa - by JDesigner - 23.02.2012, 20:44
Re: [PEDIDO]4 Comandos e 1 Mapa - by Lucas_Alemao - 24.02.2012, 01:34

Forum Jump:


Users browsing this thread: 2 Guest(s)