Jump to content

Cum pot face acest mesaj doar pentru playeri


Onehitkill

Recommended Posts

Vreau ca cand un player depaseste 250 viteza vehicul sa spuna la admini
 

Iar daca un admin depaseste 250 sa nu spuna nimic

new idcar = GetPlayerVehicleID(i);
            if(GetPlayerState(i) == PLAYER_STATE_DRIVER && !IsAPlane(idcar))
            {
                new speed = Carspeed(i),
                    antispeed[300],
                    sendername[25];
                GetPlayerName(i,sendername,sizeof(sendername));
                if(speed > 222)
                {
                    format(antispeed, sizeof(antispeed), "(N) %s (%d, level %d) may be using speed hack, vehicle: %s, speed: %.0d.",sendername,i,PlayerInfo[pLevel],aVehicleNames[GetVehicleModel(GetPlayerVehicleID(i))-400],speed);
                    ABroadCast(COLOR_RED,antispeed,1);
                }
            }

 

 

ma ajutati ?

Edited by Onehitkill
Link to comment
Share on other sites

new idcar = GetPlayerVehicleID(i);
            if(GetPlayerState(i) == PLAYER_STATE_DRIVER && !IsAPlane(idcar))
            {
                new speed = Carspeed(i),
                    antispeed[300],
                    sendername[25];
                GetPlayerName(i,sendername,sizeof(sendername));
                if(speed > 222 && PlayerInfo[pAdmin] < 1)
                {
                    format(antispeed, sizeof(antispeed), "(N) %s (%d, level %d) may be using speed hack, vehicle: %s, speed: %.0d.",sendername,i,PlayerInfo[pLevel],aVehicleNames[GetVehicleModel(GetPlayerVehicleID(i))-400],speed);
                    ABroadCast(COLOR_RED,antispeed,1);
                }
            }

Tocmai ti-am facut functia, mai ramane sa o adaugi in gm.

Ce am adaugat? Pur si simplu daca jucatorul are admin 0 v-a declansa textul de mai jos. 

Edited by _SIRIUS_
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.