Spec saving off
#8

pawn Код:
public OnPlayerSpawn(playerid)
{
    SetRank3DText(playerid);
    PlayerPlaySound(playerid,1063,0.0,0.0,0.0);
    SetPlayerHealth(playerid, 97);
    pSpawned[playerid] = 1;
    pAlive[playerid] = 1;
    IsTakingOverTurf[playerid] = 0;
    pSkProtected[playerid] = 1;
    SetPlayerHealth(playerid, FLOAT_INFINITY);
    ASkTimer[playerid] = SetTimerEx("AntiSpawnkill",10000,0,"i",playerid);
    SetTimerEx("PlayerUnfrozen", 3000, false, "i", playerid);
    TogglePlayerControllable(playerid, 0);
    SCM(playerid,red,"* You are freezed for 3 seconds and in godmode for 10.");
   
    GangZoneShowForPlayer(playerid, UsaGangzone, COLOR_BLUE);
    GangZoneShowForPlayer(playerid, GermanyZone, COLOR_RED);
    GangZoneShowForPlayer(playerid, RussianZone, COLOR_ORANGE);
    GangZoneShowForPlayer(playerid, JapanZone, COLOR_LIGHTGREEN);
    GangZoneShowForPlayer(playerid, MercenaryZone, COLOR_INDIGO);
   
    TextDrawShowForPlayer(playerid, KillsTxd[playerid]);
    TextDrawShowForPlayer(playerid, DeathsTxd[playerid]);
    TextDrawShowForPlayer(playerid, RankTxd[playerid]);
    TextDrawShowForPlayer(playerid, KSTxd[playerid]);
    TextDrawShowForPlayer(playerid, CookiesTxd[playerid]);
    TextDrawShowForPlayer(playerid, ClassTxd[playerid]);
   
    if(pInfo[playerid][Admin] >= 1)
    {
        TextDrawShowForPlayer(playerid, ShopTxd[playerid]);
        TextDrawShowForPlayer(playerid, ReportedTxd[playerid]);
        TextDrawShowForPlayer(playerid, RegTxd[playerid]);
        TextDrawShowForPlayer(playerid, PausedTxd[playerid]);
        TextDrawShowForPlayer(playerid, PmTxd[playerid]);
        TextDrawShowForPlayer(playerid, AdminEchoTxd[playerid]);
    }
    TextDrawShowForPlayer(playerid, Star[0]);
    TextDrawShowForPlayer(playerid, Star[1]);
    TextDrawShowForPlayer(playerid, Star[2]);
    TextDrawShowForPlayer(playerid, CmdsTxd);

    RankArmour(playerid);
    CheckForLevelUpdate(playerid);

    if(pInfo[playerid][Jailed] == 1 && pInfo[playerid][Logged] == 1)
    {
        SetTimerEx("JailRes", 3000, false, "i", playerid);
    }
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);

    ClearAnimations(playerid);

    if(GetPVarType(playerid, "SXPos"))
    {
        SetPlayerPosEx(playerid, GetPVarFloat(playerid,"SXPos"), GetPVarFloat(playerid,"SYPos"), GetPVarFloat(playerid,"SZPos"));
        DeletePVar(playerid, "XPos");
    } else {
        switch(gTeam[playerid])
        {
            case TEAM_USA:
            {
                SetRandomUSAPos(playerid);
                TextDrawHideForPlayer(playerid,MercTxd);
                TextDrawShowForPlayer(playerid,UsaTxd);
                TextDrawHideForPlayer(playerid,GermanyTxd);
                TextDrawHideForPlayer(playerid,RussianTxd);
                TextDrawHideForPlayer(playerid,JapanTxd);
                UsaWeps(playerid);
                WindowForPlayer(playerid, "You have ~y~spawned ~w~as ~r~Usa Team.");
            }
            case TEAM_GERMANY:
            {
                SetRandomGERPos(playerid);
                TextDrawHideForPlayer(playerid,MercTxd);
                TextDrawShowForPlayer(playerid, GermanyTxd);
                TextDrawHideForPlayer(playerid,UsaTxd);
                TextDrawHideForPlayer(playerid,RussianTxd);
                TextDrawHideForPlayer(playerid,JapanTxd);
                GermanyWeps(playerid);
                WindowForPlayer(playerid, "You have ~y~spawned ~w~as ~r~Germany Team.");
            }
            case TEAM_RUSSIA:
            {
                SetRandomRUSPos(playerid);
                TextDrawHideForPlayer(playerid,MercTxd);
                TextDrawShowForPlayer(playerid, RussianTxd);
                TextDrawHideForPlayer(playerid,GermanyTxd);
                TextDrawHideForPlayer(playerid,JapanTxd);
                TextDrawHideForPlayer(playerid,UsaTxd);
                RussianWeps(playerid);
                WindowForPlayer(playerid, "You have ~y~spawned ~w~as ~r~Russia Team.");
            }
            case TEAM_JAPAN:
            {
                SetRandomJAPPos(playerid);
                TextDrawHideForPlayer(playerid,MercTxd);
                TextDrawShowForPlayer(playerid, JapanTxd);
                TextDrawHideForPlayer(playerid,GermanyTxd);
                TextDrawHideForPlayer(playerid,RussianTxd);
                TextDrawHideForPlayer(playerid,UsaTxd);
                JapanWeps(playerid);
                WindowForPlayer(playerid, "You have ~y~spawned ~w~as ~r~Japan Team.");
            }
            case TEAM_MERCENARY:
            {
                SetRandomMERCENARYPos(playerid);
                TextDrawShowForPlayer(playerid, MercTxd);
                TextDrawHideForPlayer(playerid,UsaTxd);
                TextDrawHideForPlayer(playerid,GermanyTxd);
                TextDrawHideForPlayer(playerid,RussianTxd);
                TextDrawHideForPlayer(playerid,JapanTxd);
                MercenaryWeps(playerid);
                WindowForPlayer(playerid, "You have ~y~spawned ~w~as ~r~Mercenary Team.");
            }
        }
    }
    SetPlayerToTeamColour(playerid);
    SettingPlayerTeam();
    return true;
}
Reply


Messages In This Thread
Spec saving off - by Face9000 - 11.05.2013, 20:25
AW: Spec saving off - by Nero_3D - 11.05.2013, 20:31
Re: Spec saving off - by Face9000 - 11.05.2013, 20:34
Re: Spec saving off - by MP2 - 11.05.2013, 20:42
Re: Spec saving off - by Face9000 - 11.05.2013, 20:49
AW: Spec saving off - by Nero_3D - 11.05.2013, 21:15
Re: Spec saving off - by Face9000 - 11.05.2013, 21:26
AW: Re: Spec saving off - by Nero_3D - 11.05.2013, 21:57
Re: Spec saving off - by Face9000 - 12.05.2013, 09:35
AW: Spec saving off - by Nero_3D - 12.05.2013, 10:19

Forum Jump:


Users browsing this thread: 1 Guest(s)