Jump to content
  • 0

Skin 0 la /spawn - GM BigZone edit by Ainox


iRay

Question

Salut, mereu cand dau /spawn imi da skin 0, nu doar mie, la toti, chiar daca sunt civil sau in factiune. M-am uitat peste tot prin gm dar nu am gasit nimic...

Cand ma inregistrez pe server imi da skin normal, dar dupa /spawn imi da skin 0 ...

Va rog daca puteti sa ma ajutati.

Link to comment
Share on other sites

13 answers to this question

Recommended Posts

  • 0
2 minutes ago, iRay said:

Pai daca as folosi SetPlayerSkin in comanda /spawn cam cum ar arata? Ca daca player-ul e intr-o factiune sa fie pt factiunea lui, daca e civil sa fie de civil, daca a fost setat prin /setskin sa fie acela...

Vezi cum ai atunci cand se autentifica, cum ii atribuie un anumit skin.

Link to comment
Share on other sites

  • 0
Quote

public SetPlayerSpawn(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        InHouse[playerid] = -1;
        InBussines[playerid] = -1;
        InHQ[playerid] = -1;
        StopAudioStreamForPlayer(playerid);
        SetPlayerVirtualWorld(playerid,0);
        SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]);
        if(PlayerInfo[playerid][pTut] == 0)

Sa fiu mai clar. Deci eu cand setez un skin, sau cel de civil, de factiune etc.. se pune, doar ca la comanda /spawn se suprapune skin-ul 0...

Link to comment
Share on other sites

  • 0

Pardon, am zis asta din alt gm (nu mai pot sa dau edit), defapt am asa:

 

Quote

public SetPlayerSpawn(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        InHouse[playerid] = -1;
        InBussines[playerid] = -1;
        InHQ[playerid] = -1;
        StopAudioStreamForPlayer(playerid);
        SetPlayerVirtualWorld(playerid,0);
        if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pLeader] == 8)
        {
            if(OnDuty[playerid] == 0)
            {
                SetPlayerSkin(playerid, PlayerInfo[playerid][pSecSkin]);
            }
            if(OnDuty[playerid] == 1)
            {
                SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]);
            }
        }
        SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]);
        if(PlayerInfo[playerid][pTut] == 0)

 

Link to comment
Share on other sites

  • 0

Comanda /spawn arata asa (m-am mai uitat prin ea)

Ori oi fi eu prea chior ori nu este nici un 'SetPlayerSkin'

Quote

CMD:spawn(playerid, params[])
{
    
    if(IsPlayerConnected(playerid))
    {
          if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1)
        {
            new id,sendername[30],giveplayer[30],string[256];
            if(sscanf(params, "u", id)) return SCM(playerid,COLOR_WHITE,"{FFFFFF}Syntax: {FFFFFF}/spawn <Name/Playerid>");
            {
                if(IsPlayerConnected(id))
                {
                    if(id != INVALID_PLAYER_ID)
                    {
                        GetPlayerName(id, giveplayer, sizeof(giveplayer));
                        SpawnPlayer(id);
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                         format(string, sizeof(string), "Admin %s spawned you.", sendername);
                        SendClientMessage(id, COLOR_DARKPINK, string);
                        format(string, sizeof(string), "You respawned %s.", giveplayer);
                        SendClientMessage(playerid, COLOR_DARKPINK, string);
                        format(string, sizeof(string), "AdmCmd: %s used /spawn on player %s.",sendername, giveplayer);
                        ABroadCast(COLOR_ADMCOMMANDS,string,1);
                        HLChat(COLOR_ADMCOMMANDS,string);
                        return 1;
                    }
                }
                else
                {
                    SCM(playerid,COLOR_WHITE,"{FFFFCC}Error: Player not connected.");
                }
            }
           }
        else
        {
            SendClientMessage(playerid, COLOR_ERROR, AdminOnly);
        }
    }
    return 1;
}

 

Link to comment
Share on other sites

  • 0

Pe langa alte chestii neimportante in acest subiect, am la ultimele randuri:

   

Quote

 ChosenSkin[playerid] = 1;
    SetPlayerSpawn(playerid);

    SetPlayerToTeamColor(playerid);
    playerdeath[playerid] = 0;
    Undercover[playerid] = 0;
    SetPlayerTeam(playerid,4);
    StopAudioStreamForPlayer(playerid);

 

Link to comment
Share on other sites

  • 0
Quote

     ChosenSkin[playerid] = 1;
    SetPlayerSpawn(playerid);
    SetPlayerToTeamColor(playerid);
    playerdeath[playerid] = 0;
    Undercover[playerid] = 0;
    Chatcmd[playerid] = 0;
    OnDuty[playerid] = 0;
    if(OnDuty[playerid] == 0)
    {
        SetPlayerSkin(playerid, PlayerInfo[playerid][pSecSkin]);
    }

Asa e defapt... iar luasem din alt gm :|

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.