Jump to content
  • 0

Question

Posted

Problemă întâlnită (descriere): Vreau sa imi ziceti cum sa fac sa fie 3 functii de helper? Si sa imi ziceti cum sa pun comenzi.
Ero(area / rile) / warning-(ul / urile):
Liniile de cod / sursa / script-ul:
Imagini / Video (optional): Adica helper 1, helper 2 si helper 3
Aţi încercat să rezolvaţi singur? Nu

 

 

6_emblema_2.pngRPG.RELOADED.GA ( SERVER DE RPG, BEST SERVER RELAODED ) ALATURA-TE NOUA !!!

4 answers to this question

Recommended Posts

Posted (edited)

In gm undeva este

 

enum pInfo
{
     pKey,
    pLevel,
    pSpawn,

 

 

1 adaugi " pHelper, "

2 la public OnPlayerConnect(playerid)

cauti ceva de genul asta

    PlayerInfo[playerid][pSpeedo] = 0;
    PlayerInfo[playerid][pHideNumber] = 0;
    PlayerInfo[playerid][pSpeaker] = 0;

 

si adaugi

PlayerInfo[playerid][pHelper] = 0;

3. cauti comanda de face admin, si peste tot unde este padmin sau admin cum ai tu

inlocuiesti cu " pHelper "

 

apoi la comanda ex

"/gotols"

 

if(strcmp(cmd, "/gotols", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pAdmin] >= 1)
            {
                if (GetPlayerState(playerid) == 2)
                {
                    new tmpcar = GetPlayerVehicleID(playerid);
                    SetVehiclePos(tmpcar, 1529.6,-1691.2,13.3);
                    TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
                    LinkVehicleToInterior(tmpcar, 0);
                    SetPlayerVirtualWorld(playerid, 0);
                    OnPlayerExitFood(playerid);
                    new y, m, d;
                    new h,mi,s;
                    getdate(y,m,d);
                    gettime(h,mi,s);
                    format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Teleported Himself to Los Santos",d,m,y,h,mi,s,sendername);
                    TelesLog(string);
                }
                else
                {
                    SafeSetPlayerPos(playerid, 1529.6,-1691.2,13.3);
                    SetPlayerVirtualWorld(playerid, 0);
                }
                format(string, sizeof(string), "[ADMIN]: %s Has Teleported Himself to Los Santos.", sendername);
                ABroadCast(COLOR_LIGHTRED,string, 5);
                SafeSetPlayerInterior(playerid,0);
                DisablePlayerCheckpoint(playerid);
                new y, m, d;
                new h,mi,s;
                getdate(y,m,d);
                gettime(h,mi,s);
                format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Teleported Himself to Los Santos",d,m,y,h,mi,s,sendername);
                TelesLog(string);
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "** You are not authorized to use that command !");
                return 1;
            }
        }
        return 1;
    }

unde este   if(PlayerInfo[playerid][pAdmin] >= 1) adugi asa

            if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1))

Edited by Mister

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Posted

Deci vrei un sistem de helper ?

Daca da ce sistem de comenzi folosesti ? 

(ZMCD, DCMD, Default) - ZeeX, Draco Blue, SA:MP Team

"Mulţi programatori buni fac programare nu pentru că se aşteaptă să câştige bani sau să fie lăudaţi de public, ci pentru că e amuzant să programezi." - Linus Torvalds

Posted

Problemă întâlnită (descriere): Vreau sa imi ziceti cum sa fac sa fie 3 functii de helper? Si sa imi ziceti cum sa pun comenzi.

Ero(area / rile) / warning-(ul / urile):

Liniile de cod / sursa / script-ul:

Imagini / Video (optional): Adica helper 1, helper 2 si helper 3

Aţi încercat să rezolvaţi singur? Nu

Tu vrei system de hellper sau ??

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.