[FilterScript] Forest Arena DM
#9

Um exemplo...
pawn Код:
public OnPlayerSpawn(playerid){
    if (noTotForest[playerid] == 1){
        SetPlayerInForestMAP(playerid);
        return 1;
    }
    return 1;
}

SetPlayerInForestMAP(playerid){
    new rand = random(sizeof(RandomTotola));
    SetPlayerPos(playerid, RandomTotola[rand][0], RandomTotola[rand][1],RandomTotola[rand][2]);

    ResetPlayerWeapons(playerid);

    SendClientMessage(playerid, 0xCECEFF7D, "Digite /sairforest para sair do evento DM.");

    GivePlayerWeapon(playerid, 29, 60);
    SetPlayerHealth(playerid, 40);
    SetPlayerArmour(playerid, 0);

    noTotForest[playerid] = 1;
    for(new i = 0; i < MAX_PLAYERS; i++)
        if(IsPlayerConnected(i))
            ShowPlayerNameTagForPlayer(playerid, i, false);
}

CMD:sairforest(playerid,params[]){
    noTotForest[playerid] = 0;
    SendClientMessage(playerid, 0xCECEFF7D, "Vocк saiu do evento bla bla bla. !");
    return 1;
}
Nгo sei se ta certo, fiz aqui pelo fуrum.
flw.
Reply


Messages In This Thread
Forest Arena DM - by Jumper. - 25.05.2013, 19:59
Re: Forest Arena DM - by AlucardSnow - 25.05.2013, 20:12
Re: Forest Arena DM - by SampSampa - 26.05.2013, 01:17
Re: Forest Arena DM - by Kuddy - 26.05.2013, 03:26
Re: Forest Arena DM - by Jumper. - 26.05.2013, 17:26
Re: Forest Arena DM - by Naja - 01.06.2013, 00:46
Re: Forest Arena DM - by Jumper. - 01.06.2013, 00:48
Re: Forest Arena DM - by Deli - 01.04.2014, 17:42
Re: Forest Arena DM - by Schocc - 01.04.2014, 18:00
Re: Forest Arena DM - by Jumper. - 01.04.2014, 21:12

Forum Jump:


Users browsing this thread: 1 Guest(s)