[Pedido] Comando
#2

pawn Код:
CMD:respawn(playerid, params[])
{
    new Tipo;

    if (sscanf(params, "d", Tipo))
        return SendClientMessage(playerid, 0xFF0000FF, "Uso correto: /respawn [1 - 2]");

    if (Tipo < 0 || Tipo > 2)
        return SendClientMessage(playerid, 0xFF0000FF, "Tipos: 1 e 2");

    if (Tipo == 1)
        SetPlayerPos(playerid, -1117.5160, -1013.9244, 129.2188);  

    if (Tipo == 2)
        SetPlayerPos(playerid, -2125.8049, -361.9627, 34.8744 );
    return 1;
}
Reply


Messages In This Thread
Comando - by AndersonAq - 17.08.2013, 15:25
Re: Comando - by Juniiro3 - 17.08.2013, 15:30

Forum Jump:


Users browsing this thread: 1 Guest(s)