help plz spawn/weapons/spawnzones and other's please !
#1

hi, i'm doing a protect and i need help with any's "new" "public" "class" "zonesspawn" :P, really i need help fast !
this are the codes !


pawn Код:
new Players;
AntiDEAmx()
{
     new gunz[][] =
     {
         "Unarmed (Fist)",
         "Brass K"
     };
     #pragma unused gunz
}
forward RankRefresh();
new Float:cbx[MAX_PLAYERS], Float:cby[MAX_PLAYERS], Float:cbz[MAX_PLAYERS], Float:cba[MAX_PLAYERS];

forward SendClientMessageToAdmins(color,string[],alevel);
forward SendPlayerFormattedText(playerid, const string[], define);
//new FALSE = false;
#define SendFormattedMessage(%0,%1,%2,%3) do{new _string[128]; format(_string,sizeof(_string),%2,%3); SendClientMessage(%0,%1,_string);} while(FALSE)
#define SendFormattedMessageToAll(%0,%1,%2) do{new _string[128]; format(_string,sizeof(_string),%1,%2); SendClientMessageToAll(%0,_string);} while(FALSE)
Vip(playerid);

new sendername[16];
    new giveplayerid, giveplayer[16];
   
new bool:IsInCargoB[MAX_PLAYERS];
new PlayerCargoB[MAX_PLAYERS];

new bool:IsInBarracks[MAX_PLAYERS];
new PlayerBarracks[MAX_PLAYERS];
new rank[MAX_PLAYERS];
new dispout[MAX_PLAYERS];
stock SetPlayerRankStars(playerid)
forward SettingPlayerTeam();
stock CheckForLevelUpdate(playerid)
{
    SetPlayerWantedLevel(playerid, rank[playerid]);
    return 1;
}

SettingPlayerTeam();
new logged[MAX_PLAYERS];
new nameee[20];

new deaths[MAX_PLAYERS];
new kills[MAX_PLAYERS];
new ammoo[MAX_PLAYERS];
new piolet[MAX_PLAYERS];
new Text:Classt[MAX_PLAYERS];
new Text:Spree;
new Text:Teams[MAX_PLAYERS];
enum enums
{
    is,
    intspc,
    Float:Xspc,
    Float:Yspc,
    Float:Zspc
};

new PlayerSpec[MAX_PLAYERS][enums];
new GeneralClass[MAX_PLAYERS][5];

new pSpawned[MAX_PLAYERS];
new SpawnP[MAX_PLAYERS];

new AbleToSpawn[MAX_PLAYERS];
new adminlevel[MAX_PLAYERS];

new PickedClass[MAX_PLAYERS] = 0;


new Text:txtTimeDisp;
new hourx, minutex, secx;
new timestr[32];



forward BanLog(string[]);
forward Message();

forward SpamUpdate();

new Messages[MAX_PLAYERS];
new Commands[MAX_PLAYERS];








#if defined FILTERSCRIPT
and also i want know why "pawno" say this errors
when i join to the server i got nothing no weapons no skins well skins yes but only when i do "spawn"

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{


    pSpawned[playerid] = 0;

    SetPlayerClass(playerid, classid);
    gPlayerClass[playerid] = Sniper;

    SetPlayerPos(playerid,11.9577,1716.7191,22.6222);
    SetPlayerFacingAngle(playerid, 128.0980);
    SetPlayerInterior(playerid, 0);
    SetPlayerCameraPos(playerid,9.6063,1715.1882,22.6113);
    SetPlayerCameraLookAt(playerid,11.9577,1716.7191,22.6222);
    CreateExplosion(11.9577,1716.7191,22.6222, 12, 0.1);

    switch (classid) {
        case 0:
        {
            TextDrawHideForPlayer(playerid, Teams[playerid]);
            TextDrawSetString(Teams[playerid], "~y~Brasil");
            TextDrawShowForPlayer(playerid, Teams[playerid]);
        }
        case 1:
        {
            TextDrawHideForPlayer(playerid, Teams[playerid]);
            TextDrawSetString(Teams[playerid], "~b~Usa");
            TextDrawShowForPlayer(playerid, Teams[playerid]);
        }
        case 2:
        {
            TextDrawHideForPlayer(playerid, Teams[playerid]);
            TextDrawSetString(Teams[playerid], "~o~Germany");
            TextDrawShowForPlayer(playerid, Teams[playerid]);
        }
        case 3:
        {
            TextDrawHideForPlayer(playerid, Teams[playerid]);
            TextDrawSetString(Teams[playerid], "~y~Secret Agency");
            TextDrawShowForPlayer(playerid, Teams[playerid]);
        }
        case 4:
        {
            TextDrawHideForPlayer(playerid, Teams[playerid]);
            TextDrawSetString(Teams[playerid],"~p~China");
            TextDrawShowForPlayer(playerid, Teams[playerid]);
        }
    }
    return 1;
}
looks this ! (zones spawn)
pawn Код:
public OnPlayerSpawn(playerid)
{
new playerColors[MAX_PLAYERS];
       if(gTeam[playerid] == TEAM_Brasil )
        {
            if( gPlayerClass[playerid] == Admin ) SetPlayerSkin(playerid, 217);
            if( gPlayerClass[playerid] == Sniper ) SetPlayerSkin(playerid, 149);
            if( gPlayerClass[playerid] == Engineer ) SetPlayerSkin(playerid, 149);
            if( gPlayerClass[playerid] == Juggernaut ) SetPlayerSkin(playerid, 149);
            if( gPlayerClass[playerid] == Saboteur ) SetPlayerSkin(playerid, 149);
            if( gPlayerClass[playerid] == Pilot ) SetPlayerSkin(playerid, 149);
            if( gPlayerClass[playerid] == Soldider ) SetPlayerSkin(playerid, 149);
        }
        if(gTeam[playerid] == TEAM_Usa )
        {
            if( gPlayerClass[playerid] == Admin ) SetPlayerSkin(playerid, 217);
            if( gPlayerClass[playerid] == Sniper ) SetPlayerSkin(playerid, 153);
            if( gPlayerClass[playerid] == Engineer ) SetPlayerSkin(playerid, 153);
            if( gPlayerClass[playerid] == Juggernaut ) SetPlayerSkin(playerid, 153);
            if( gPlayerClass[playerid] == Saboteur ) SetPlayerSkin(playerid, 153);
            if( gPlayerClass[playerid] == Pilot ) SetPlayerSkin(playerid, 153);
            if( gPlayerClass[playerid] == Soldider ) SetPlayerSkin(playerid, 153);
        }
        if(gTeam[playerid] == TEAM_Germany )
        {
            if( gPlayerClass[playerid] == Admin ) SetPlayerSkin(playerid, 217);
            if( gPlayerClass[playerid] == Sniper ) SetPlayerSkin(playerid, 126);
            if( gPlayerClass[playerid] == Engineer ) SetPlayerSkin(playerid, 126);
            if( gPlayerClass[playerid] == Juggernaut ) SetPlayerSkin(playerid, 126);
            if( gPlayerClass[playerid] == Saboteur ) SetPlayerSkin(playerid, 126);
            if( gPlayerClass[playerid] == Pilot ) SetPlayerSkin(playerid, 126);
            if( gPlayerClass[playerid] == Soldider ) SetPlayerSkin(playerid, 126);
        }
        if(gTeam[playerid] == TEAM_Secret_Agency )
        {
            if( gPlayerClass[playerid] == Admin ) SetPlayerSkin(playerid, 217);
            if( gPlayerClass[playerid] == Sniper ) SetPlayerSkin(playerid, 294);
            if( gPlayerClass[playerid] == Engineer ) SetPlayerSkin(playerid, 294);
            if( gPlayerClass[playerid] == Juggernaut ) SetPlayerSkin(playerid, 294);
            if( gPlayerClass[playerid] == Saboteur ) SetPlayerSkin(playerid, 294);
            if( gPlayerClass[playerid] == Pilot ) SetPlayerSkin(playerid, 294);
            if( gPlayerClass[playerid] == Soldider ) SetPlayerSkin(playerid, 294);
        }
        if(gTeam[playerid] == TEAM_Mexico )
        {
            if( gPlayerClass[playerid] == Admin ) SetPlayerSkin(playerid, 217);
            if( gPlayerClass[playerid] == Sniper ) SetPlayerSkin(playerid, 124);
            if( gPlayerClass[playerid] == Engineer ) SetPlayerSkin(playerid, 124);
            if( gPlayerClass[playerid] == Juggernaut ) SetPlayerSkin(playerid, 124);
            if( gPlayerClass[playerid] == Saboteur ) SetPlayerSkin(playerid, 124);
            if( gPlayerClass[playerid] == Pilot ) SetPlayerSkin(playerid, 124);
            if( gPlayerClass[playerid] == Soldider ) SetPlayerSkin(playerid, 124);
        }
        if(gTeam[playerid] == TEAM_China )
        {
            if( gPlayerClass[playerid] == Admin ) SetPlayerSkin(playerid, 217);
            if( gPlayerClass[playerid] == Sniper ) SetPlayerSkin(playerid, 124);
            if( gPlayerClass[playerid] == Engineer ) SetPlayerSkin(playerid, 124);
            if( gPlayerClass[playerid] == Juggernaut ) SetPlayerSkin(playerid, 124);
            if( gPlayerClass[playerid] == Saboteur ) SetPlayerSkin(playerid, 124);
            if( gPlayerClass[playerid] == Pilot ) SetPlayerSkin(playerid, 124);
            if( gPlayerClass[playerid] == Soldider ) SetPlayerSkin(playerid, 124);
        }
        playerColors[playerid] = GetPlayerColor(playerid);
       
        SendClientMessage(playerid, COLOR_RED, "To make this server better you can donate! When you donate you will recieve the V.I.P team!");
        SendClientMessage(playerid, COLOR_RED, "To donate go to the website and press the paypal donate button!");
        SendClientMessage(playerid, COLOR_GREEN, "NEW: Type /donate to see the features you can get!");
        SetPlayerInterior(playerid, 0);
        if( gTeam[playerid] == TEAM_Usa )
    {
        switch(SpawnP[playerid])
        {
        case 1:
              SetPlayerPos(playerid,603.4975,1948.8561,7.0000,340.3662);
            }
                    }
          if( gTeam[playerid] == TEAM_Brasil )
            {
             switch(SpawnP[playerid])
           {
               case 1:
           SetPlayerPos(playerid,-544.5117,2594.1101,53.5156,275.0858);
                 }
             }
         if( gTeam[playerid] == TEAM_Germany )
              {
                   switch(SpawnP[playerid])
           {case 1:
           SetPlayerPos(playerid,188.2946,1380.5273,10.5859,56.7138);
               }
          }
         if( gTeam[playerid] == TEAM_Secret_Agency )
             {
           switch(SpawnP[playerid])
               {
                      case 1:
           SetPlayerPos(playerid,1451.3868,2820.9016,10.8247,121.2377);
              }
         }
            if( gTeam[playerid] == TEAM_Mexico )
             {
            switch(SpawnP[playerid])
           {
           case 1:
               SetPlayerPos(playerid,620.8291,865.8768,-42.9609,12.5392);
           }
         }
         if( gTeam[playerid] == TEAM_China )
          {
           switch(SpawnP[playerid])
           {
           case 1:
           SetPlayerPos(playerid,-315.9634,1078.6794,19.5857,298.0892);
           }
         }
        SendClientMessage(playerid, COLOR_GREY, "Type /sc to change your class!");
    return 1;
}

the errors !
http://rusheliteclan.com/uploader/images/xXPEv.jpg
no weaps no skins when i'm selecting the teams not clases ! idk why ! ploz help me ! fast please
Reply
#2

I'm not really understanding what you are wanting, also please, please do not use such an annoying font choice next time :S
Reply
#3

Also I only see a load of warnings to do with you not using the defined variables in your script
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)