[Ajuda] Teleporte
#5

pawn Код:
//topo do GM:

new IsInMinugun[MAX_PLAYERS];


//em OnPlayerConnect:

IsInMinigun[playerid] = 0;

//agr vai em onplayerdeath e no local onde tem: SetPlayerScre(playerid, GetPlayerScore(playerid) +1); (ou equivalente), coloca a condiзгo:


if(IsInMinigun[playerid] == 1) return 0;


//e no comando:

if(strcmp("/minigun", cmdtext, true, 10) == 0)
    {
        new pname[MAX_PLAYER_NAME];
        new string [256];
        if(IsInMinigun[playerid] == 1) return SendClientMessage(playerid, 0xAAAAAAAA, "VocК jб estб no espaзo Minigun");
        GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
        format(string, sizeof(string), "{00FF7F}[TELEPORTE]: {FFFFFF}%s Foi para o Combate Minigun {00FF7F}(/minigun)", pname);
        SendClientMessageToAll(0x00F400AA, string);
        SetPlayerInterior(playerid, 0);
        SetPlayerVirtualWorld(playerid, 4);
        SetPlayerPos(playerid,1780.4139,-1119.7454,85.4453);
        ResetPlayerWeapons(playerid);
        IsInMinigun[playerid] = 1;
        GivePlayerWeapon(playerid, 38, 9999);
        return 1;
    }
Reply


Messages In This Thread
[Ajuda] Teleporte - by .FuneraL. - 25.02.2012, 02:08
Re: [Ajuda] Teleporte - by Lucas_Alemao - 25.02.2012, 02:22
Re: [Ajuda] Teleporte - by .FuneraL. - 25.02.2012, 02:24
Re: [Ajuda] Teleporte - by Lucas_Alemao - 25.02.2012, 02:34
Re: [Ajuda] Teleporte - by andmeida10 - 25.02.2012, 12:17
Re: [Ajuda] Teleporte - by zbt - 25.02.2012, 14:19

Forum Jump:


Users browsing this thread: 2 Guest(s)