Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Recommended Posts

Posted

Buna ziua,am luat un GM dupa net,nu ii dau nume daca nu este nevoie,si are interiorul la banca schimbat,dar cand intri in banca primesti freeze automat si pana nu iti dai unfreeze nu te poti misca,cum pot remedia aceasta problema? Ca e o problema destul de mare pentru playeri.

Posted

if(strcmp(cmd, "/goto", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "{00FF00}Folosire:{FFFFFF} /goto [playerid/numejucator]");
                return 1;
            }
            new Float:plocx,Float:plocy,Float:plocz;
            new plo;
            plo = ReturnUser(tmp);
            if (IsPlayerConnected(plo))
            {
             if(plo != INVALID_PLAYER_ID)
            {
                if(Goto[plo] == 1)
                {
                    if (PlayerData[playerid][pAdmin] >= 1 || PlayerData[playerid][pAgent] >= 1)
                    {
                        if(Spectate[playerid] != 255)
                        {
                            Spectate[playerid] = 256;
                        }
                        GetPlayerPos(plo, plocx, plocy, plocz);
                        if(PlayerData[plo][pInt] > 0)
                        {
                            SetPlayerInterior(playerid,PlayerData[plo][pInt]);
                            PlayerData[playerid][pInt] = PlayerData[plo][pInt];
                            PlayerData[playerid][pLocal] = PlayerData[plo][pLocal];
                        }
                        if(PlayerData[playerid][pInt] == 0)
                        {
                            SetPlayerInterior(playerid,0);
                        }
                        if(plocz > 530.0 && PlayerData[plo][pInt] == 0) //the highest land point in sa = 526.8
                        {
                            SetPlayerInterior(playerid,1);
                            PlayerData[playerid][pInt] = 1;
                        }
                        if (GetPlayerState(playerid) == 2)
                        {
                            new tmpcar = GetPlayerVehicleID(playerid);
                            SetVehiclePos(tmpcar, plocx, plocy+4, plocz);
                        }
                        else
                        {
                            SetPlayerPos(playerid,plocx,plocy+2, plocz);
                        }
                        SendClientMessage(playerid, COLOR_GRAD1, "   Ai fost teleportat");
                        SetPlayerInterior(playerid, GetPlayerInterior(plo));
                        //Goto[plo] = 0;
                        SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(plo));
                    }
                    else
                    {
                        SendClientMessage(playerid, COLOR_GRAD1, "   Nu ai rangul administrativ necesar!");
                    }
                }
                else
                {
                SendClientMessage(playerid, COLOR_GRAD1, "[Anti-Abuz] Acel player nu dat ajutor sau report ");
                }
            }
            else
            {
                format(string, sizeof(string), "   %d nu este conectat.", plo);
                SendClientMessage(playerid, COLOR_GRAD1, string);
            }
            }
        }
        return 1;
    }

 

Pot da goto doar daca playerul da /report,cum pot rezolva??

Posted
Acum 3 minute, AlexanderSMG a spus:

if(strcmp(cmd, "/goto", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "{00FF00}Folosire:{FFFFFF} /goto [playerid/numejucator]");
                return 1;
            }
            new Float:plocx,Float:plocy,Float:plocz;
            new plo;
            plo = ReturnUser(tmp);
            if (IsPlayerConnected(plo))
            {
             if(plo != INVALID_PLAYER_ID)
            {
                if(Goto[plo] == 1)
                {
                    if (PlayerData[playerid][pAdmin] >= 1 || PlayerData[playerid][pAgent] >= 1)
                    {
                        if(Spectate[playerid] != 255)
                        {
                            Spectate[playerid] = 256;
                        }
                        GetPlayerPos(plo, plocx, plocy, plocz);
                        if(PlayerData[plo][pInt] > 0)
                        {
                            SetPlayerInterior(playerid,PlayerData[plo][pInt]);
                            PlayerData[playerid][pInt] = PlayerData[plo][pInt];
                            PlayerData[playerid][pLocal] = PlayerData[plo][pLocal];
                        }
                        if(PlayerData[playerid][pInt] == 0)
                        {
                            SetPlayerInterior(playerid,0);
                        }
                        if(plocz > 530.0 && PlayerData[plo][pInt] == 0) //the highest land point in sa = 526.8
                        {
                            SetPlayerInterior(playerid,1);
                            PlayerData[playerid][pInt] = 1;
                        }
                        if (GetPlayerState(playerid) == 2)
                        {
                            new tmpcar = GetPlayerVehicleID(playerid);
                            SetVehiclePos(tmpcar, plocx, plocy+4, plocz);
                        }
                        else
                        {
                            SetPlayerPos(playerid,plocx,plocy+2, plocz);
                        }
                        SendClientMessage(playerid, COLOR_GRAD1, "   Ai fost teleportat");
                        SetPlayerInterior(playerid, GetPlayerInterior(plo));
                        //Goto[plo] = 0;
                        SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(plo));
                    }
                    else
                    {
                        SendClientMessage(playerid, COLOR_GRAD1, "   Nu ai rangul administrativ necesar!");
                    }
                }
                else
                {
                SendClientMessage(playerid, COLOR_GRAD1, "[Anti-Abuz] Acel player nu dat ajutor sau report ");
                }
            }
            else
            {
                format(string, sizeof(string), "   %d nu este conectat.", plo);
                SendClientMessage(playerid, COLOR_GRAD1, string);
            }
            }
        }
        return 1;
    }

 

Pot da goto doar daca playerul da /report,cum pot rezolva??

modifica cu scriptul asta:

if(strcmp(cmd, "/goto", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "{00FF00}Folosire:{FFFFFF} /goto [playerid/numejucator]");
                return 1;
            }
            new Float:plocx,Float:plocy,Float:plocz;
            new plo;
            plo = ReturnUser(tmp);
            if (IsPlayerConnected(plo))
            {
             if(plo != INVALID_PLAYER_ID)
            {
                    if (PlayerData[playerid][pAdmin] >= 1 || PlayerData[playerid][pAgent] >= 1)
                    {
                        if(Spectate[playerid] != 255)
                        {
                            Spectate[playerid] = 256;
                        }
                        GetPlayerPos(plo, plocx, plocy, plocz);
                        if(PlayerData[plo][pInt] > 0)
                        {
                            SetPlayerInterior(playerid,PlayerData[plo][pInt]);
                            PlayerData[playerid][pInt] = PlayerData[plo][pInt];
                            PlayerData[playerid][pLocal] = PlayerData[plo][pLocal];
                        }
                        if(PlayerData[playerid][pInt] == 0)
                        {
                            SetPlayerInterior(playerid,0);
                        }
                        if(plocz > 530.0 && PlayerData[plo][pInt] == 0) //the highest land point in sa = 526.8
                        {
                            SetPlayerInterior(playerid,1);
                            PlayerData[playerid][pInt] = 1;
                        }
                        if (GetPlayerState(playerid) == 2)
                        {
                            new tmpcar = GetPlayerVehicleID(playerid);
                            SetVehiclePos(tmpcar, plocx, plocy+4, plocz);
                        }
                        else
                        {
                            SetPlayerPos(playerid,plocx,plocy+2, plocz);
                        }
                        SendClientMessage(playerid, COLOR_GRAD1, "   Ai fost teleportat");
                        SetPlayerInterior(playerid, GetPlayerInterior(plo));
                        //Goto[plo] = 0;
                        SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(plo));
                    }
                    else
                    {
                        SendClientMessage(playerid, COLOR_GRAD1, "   Nu ai rangul administrativ necesar!");
                    }
             }           

           else
            {
                format(string, sizeof(string), "   %d nu este conectat.", plo);
                SendClientMessage(playerid, COLOR_GRAD1, string);
            }
            }
        }
        return 1;
    }

Posted

if(strcmp(cmd, "/gethere", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendUsage(playerid,"/gethere [playerid/PartOfName]");
                return 1;
            }
            new Float:plocx,Float:plocy,Float:plocz;
            new plo;
            plo = ReturnUser(tmp);
            if (IsPlayerConnected(plo))
            {
                if(plo != INVALID_PLAYER_ID)
                {
                   if(Goto[plo] == 1)
                   {
                    if (PlayerData[playerid][pAdmin] >= 1 || PlayerData[playerid][pAgent] >= 1)
                    {
                        GetPlayerPos(playerid, plocx, plocy, plocz);
                        SetPlayerInterior(plo,GetPlayerInterior(playerid));
                        PlayerData[plo][pInt] = GetPlayerInterior(playerid);
                        PlayerData[plo][pLocal] = PlayerData[playerid][pLocal];
                        if(PlayerData[playerid][pInt] == 0)
                        {
                            SetPlayerInterior(plo,0);
                        }
                        if(plocz > 930.0 && PlayerData[playerid][pInt] == 0)
                        {
                            SetPlayerInterior(plo,1);
                            PlayerData[plo][pInt] = 1;
                        }
                        if (GetPlayerState(plo) == 2)
                        {
                            new tmpcar = GetPlayerVehicleID(plo);
                            SetVehiclePos(tmpcar, plocx, plocy+4, plocz);
                        }
                        else
                        {
                            SetPlayerPos(plo,plocx,plocy+2, plocz);
                        }
                        SendClientMessage(plo, COLOR_LIGHTGREEN, "Ai fost teleportat cu succes!");
                        foreach(Player, i)
                        {
                            if(PlayerData[pAdmin] >= 1)
                            {
                                GetPlayerName(playerid, sendername, sizeof(sendername));
                                GetPlayerName(plo, giveplayer,sizeof(giveplayer));
                                format(string, sizeof(string), "{C8D4D4}Adm{DB8E12}Warning:{FFFFFF} Admin %s l-a teleportat pe %s.", sendername,giveplayer);
                                SendClientMessage(i, COLOR_LIGHTRED, string);
                            }
                        }
                    }
                    else
                    {
                        SendError(playerid,cmd);
                    }
                  
                }
                    
                    else
                    {
                    
                    SendClientMessage(playerid, COLOR_GRAD1, "Acel player nu a dat /ajutor sau /report !");
                    }
                 }
            }
            else
            {
                format(string, sizeof(string), "%d nu este conectat.", plo);
                SendClientMessage(playerid, COLOR_GRAD1, string);
            }
        
     }
        return 1;
    }

 

 

Si gethere la fel. Mi-l rezolvi si pe asta?

Posted

poftim: 

if(strcmp(cmd, "/gethere", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendUsage(playerid,"/gethere [playerid/PartOfName]");
                return 1;
            }
            new Float:plocx,Float:plocy,Float:plocz;
            new plo;
            plo = ReturnUser(tmp);
            if (IsPlayerConnected(plo))
            {
                if(plo != INVALID_PLAYER_ID)
                {
                    if (PlayerData[playerid][pAdmin] >= 1 || PlayerData[playerid][pAgent] >= 1)
                    {
                        GetPlayerPos(playerid, plocx, plocy, plocz);
                        SetPlayerInterior(plo,GetPlayerInterior(playerid));
                        PlayerData[plo][pInt] = GetPlayerInterior(playerid);
                        PlayerData[plo][pLocal] = PlayerData[playerid][pLocal];
                        if(PlayerData[playerid][pInt] == 0)
                        {
                            SetPlayerInterior(plo,0);
                        }
                        if(plocz > 930.0 && PlayerData[playerid][pInt] == 0)
                        {
                            SetPlayerInterior(plo,1);
                            PlayerData[plo][pInt] = 1;
                        }
                        if (GetPlayerState(plo) == 2)
                        {
                            new tmpcar = GetPlayerVehicleID(plo);
                            SetVehiclePos(tmpcar, plocx, plocy+4, plocz);
                        }
                        else
                        {
                            SetPlayerPos(plo,plocx,plocy+2, plocz);
                        }
                        SendClientMessage(plo, COLOR_LIGHTGREEN, "Ai fost teleportat cu succes!");
                        foreach(Player, i)
                        {
                            if(PlayerData[pAdmin] >= 1)
                            {
                                GetPlayerName(playerid, sendername, sizeof(sendername));
                                GetPlayerName(plo, giveplayer,sizeof(giveplayer));
                                format(string, sizeof(string), "{C8D4D4}Adm{DB8E12}Warning:{FFFFFF} Admin %s l-a teleportat pe %s.", sendername,giveplayer);
                                SendClientMessage(i, COLOR_LIGHTRED, string);
                            }
                        }
                    }
                    else
                    {
                        SendError(playerid,cmd);
                    }
                  
                  }
            }
            else
            {
                format(string, sizeof(string), "%d nu este conectat.", plo);
                SendClientMessage(playerid, COLOR_GRAD1, string);
            }
        
     }
        return 1;
    }

Posted

inca o problema,nu imi merge niciun avion pe server. Inainte mergeau acum nu mai merg,nu stiu de ce. Adica cand ma urc in ele cu licenta de zbor,cu tot,imi zice Player can note use this vehicle.

Posted

Pai nu gasesc nici eu in GM,ciudat este faptul ca ieri mergea,si nu pot sa imi dau seama daca nu mai merge ca am modificat eu ceva prin GM,stiu sigur ca nu am umblat la nimic ce are legatura cu avioane sau vehicule

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.