[PEDIDO]TEMPO
#6

pronto fiz aki e so vc organizar tudo ae
qualquer warning desculpe-me pois fiz com pressa


pawn Код:
//inicio GM
forward Transformacao(playerid);
new TempoTransformacao;
new Transformo[MAX_PLAYERS];
new SkinTrans[MAX_PLAYERS];
//----------------------------//
public GameModeInitExitFunc()
{
     KillTimer(Transformacao);
     KIllTimer(TempoTransformacao);
     return 1;
}
//-------------------------------------------------------------//
public OnPlayerDisconnect(playerid, reason)
{
    KillTimer(Transformacao);
    KIllTimer(TempoTransformacao);
    return 1;
}
//-------------------------------------------------------------//
if(strcmp("/trans", cmdtext, true, 10) == 0)
{
    if(Transformo[playerid] == 1)
    {
        SendClientMessage(playerid, -1,  "Espere 60 segundos para usar este comando novamente.");
        return 1;
    }
    SendClientMessage(playerid, -1,"Vocк esta transformado");
    GetPlayerWeapon(playerid);
    SkinTrans[playerid] = GetPlayerSkin(playerid);
    SetPlayerSkin(playerid,5);
    GivePlayerWeapon(playerid,38,9999);
    Transformo[playerid] = 1;
    TempoTransformacao = SetTimer("Transformacao", 30000, 1);
    return 1;
}
//-------------------------------------------------------------//
public Transformacao(playerid)
{
    new SkinTrans[MAX_PLAYERS];
    if(IsPlayerConnected(playerid))
    {
        Transformo[playerid] = 0;
        SetPlayerSkin(playerid,SkinTrans[playerid]);
        return 1;
    }
    return 1;
}
Ajudei? clica em ajudei ae
Reply


Messages In This Thread
[PEDIDO]TEMPO - by makino - 02.02.2012, 11:08
Re: [PEDIDO]TEMPO - by makino - 02.02.2012, 11:42
Re: [PEDIDO]TEMPO - by DrTHE - 02.02.2012, 11:47
Re: [PEDIDO]TEMPO - by makino - 02.02.2012, 12:01
Re: [PEDIDO]TEMPO - by makino - 02.02.2012, 12:51
Re: [PEDIDO]TEMPO - by Stronda xD - 02.02.2012, 13:38
Re: [PEDIDO]TEMPO - by makino - 02.02.2012, 13:45
Re: [PEDIDO]TEMPO - by Lуs - 02.02.2012, 13:48
Re: [PEDIDO]TEMPO - by Stronda xD - 02.02.2012, 13:56
Re: [PEDIDO]TEMPO - by [Pawno] - 02.02.2012, 14:18

Forum Jump:


Users browsing this thread: 1 Guest(s)