[Pedido] Comandos
#2

pawn Код:
public OnPlayerConnect(playerid)
{
    static pname[MAX_PLAYER_NAME],string[32];
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "%s Entrou no Server!", pname);
    SendClientMessageToAll(-1, string);
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    static pname[MAX_PLAYER_NAME],string[64];
    GetPlayerName(playerid, pname, sizeof(pname));
    switch(reason)
    {
        case 0: format(string, sizeof(string), "%s saiu do server. (Conexгo/Crash)",pname);
        case 1: format(string, sizeof(string), "%s saiu do server. (Conta Prуpria)", pname);
        case 2: format(string, sizeof(string), "%s saiu do server. (Kikado/Banido)", pname);
    }
    SendClientMessageToAll(-1, string);
    return 1;
}

////////////////////////////////////////////////////////////////////////////////

if(!strcmp("/reparar",cmdtext,true))
{
    RepairVehicle(GetPlayerVehicleID(playerid));
    return 1;
}
Reply


Messages In This Thread
Comandos - by maluco88 - 14.09.2012, 20:32
Re: Comandos - by Crueliz0n - 14.09.2012, 20:49
Re: Comandos - by FenixBorn - 14.09.2012, 21:03
Re: Comandos - by maluco88 - 14.09.2012, 22:04
Re: Comandos - by FenixBorn - 15.09.2012, 00:16
Re: Comandos - by @Riichard - 15.09.2012, 00:26
Re: Comandos - by FenixBorn - 15.09.2012, 00:49

Forum Jump:


Users browsing this thread: 1 Guest(s)