[POMOC]Provjera

Započeo JONY
19. Feb. 2012. Zaključano
533
pregleda
2
postova
JONY
4
Enforcer
19. Feb. 2012.
Skripta koju koristim:FS
Detaljan opis problema:kako cu u ovoj komandi napraviti provjeru jeli player admini lvl 1 ili vise tako isto za gs lvl 2 ili vise
na vrhu skripte ima inc a_samp
Dio skripte:
        if(strcmp(cmd, "/derby", true) == 0)
        {
            if(derbyplaying == 1)
            {
                SendClientMessage(playerid, 0xB4B5B7AA, "The derby is already started");
                return 1;
            }
            if(playerinminigame == 1)
            {
                SendClientMessage(playerid, 0xB4B5B7AA, "You are already in a minigame");
                return 1;
            }
                new pname;
                GetPlayerName(playerid, pname, 256);
            if(derbyon == 0)
            {
                derbyon = 1;
                playerinminigame = 1;
                playerinderby = 1;
                derbyrank = 1;
                SetPlayerInterior(playerid,15);
                SetPlayerVirtualWorld(playerid,7);
                SetVehicleVirtualWorld(bloodring,7);
                bloodringfull = 1;
                PutPlayerInVehicle(playerid, bloodring, 0);
                playerinbloodring = 0;
                TogglePlayerControllable(playerid, 0);
                startvar = 1;
                dtimer = SetTimer("StartDerby", 60000, 0);
                format(string, sizeof(string), "%s has started a derby, you have one minute to type /derby and join", pname);//
                        SendClientMessageToAll(0x33AA33AA,string);
                        return 1;
            } else if(derbyon == 1 && derbyrank < 15) {
                playerinminigame = 1;
                playerinderby = 1;
                derbyrank++;
                SetPlayerInterior(playerid,15);
                for(new i=0; i<15; i++)
                {
                        if(bloodringfull == 0)
                        {
                            SetPlayerVirtualWorld(playerid,7);
                            SetVehicleVirtualWorld(bloodring,7);
                            bloodringfull = 1;
                            PutPlayerInVehicle(playerid, bloodring, 0);
                            TogglePlayerControllable(playerid, 0);
                            playerinbloodring = i;
                            format(string, sizeof(string), "%s has joined the derby", pname);//
                                        SendClientMessageToAll(0x33AA33AA,string);
                                        return 1;
                        }
                        }
            } else if(derbyon == 1 && derbyrank >= 15) {
                    format(string, sizeof(string), "The derby is full, wait for the next round", pname);//
                    SendClientMessage(playerid,0x33AA33AA,string);
                    return 1;
            }
        }
hariscoltih
3
Hustler
19. Feb. 2012.
if (PlayerInfo >= 1)
{

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha