[GameMode] zGaming Roleplay
#21

How to set points to be captured?
Reply
#22

Nice Job
Reply
#23

Hi there... I'm using this as GM cand you tell me how to disable this GM's Vehicle System and put AVS - Advanced Vehicle System? Becouse with both it's not working please help I give +REP
Reply
#24

Good job, any SS?
Reply
#25

pawn Код:
CMD:aduty(playerid, params[])
{
    new string[128], file[32];
    if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
    if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
    if(!aDuty[playerid])
    {
        format(file, sizeof(file), "users/%s.ini", RPNU(playerid));
        format(file, sizeof(file), "users/%s.ini", dini_Get(file, "AdminName"));
        if(!dini_Exists(file)) return SendClientMessage(playerid, COLOR_GREY, "Choose an admin name using /aname first.");
        format(file, sizeof(file), "users/%s.ini", RPNU(playerid));
        format(string, sizeof(string), "AdmWarn: %s has went on admin duty. (Admin name: %s)", RPN(playerid), dini_Get(file, "AdminName"));
        SendAdminMessage(COLOR_DARKRED, 1, string);
        SaveChar(playerid);
        aDuty[playerid] = 1;
        SetPlayerName(playerid, dini_Get(file, "AdminName"));
        GetPlayerIp(playerid, PlayerInfo[playerid][pIP], 16);
        format(string, sizeof(string), "%s", RPALN(playerid));
        if(IsValidDynamic3DTextLabel(aDutyText[playerid]))  DestroyDynamic3DTextLabel(aDutyText[playerid]);
        if(PlayerInfo[playerid][pAdmin] == 1) aDutyText[playerid] = CreateDynamic3DTextLabel(string, COLOR_LIGHTGREEN, 0, 0, -20, 25, playerid);
        if(PlayerInfo[playerid][pAdmin] == 2) aDutyText[playerid] = CreateDynamic3DTextLabel(string, COLOR_LIME, 0, 0, -20, 25, playerid);
        if(PlayerInfo[playerid][pAdmin] == 3) aDutyText[playerid] = CreateDynamic3DTextLabel(string, COLOR_YELLOW, 0, 0, -20, 25, playerid);
        if(PlayerInfo[playerid][pAdmin] == 4) aDutyText[playerid] = CreateDynamic3DTextLabel(string, COLOR_ORANGE, 0, 0, -20, 25, playerid);
        if(PlayerInfo[playerid][pAdmin] == 5) aDutyText[playerid] = CreateDynamic3DTextLabel(string, COLOR_RED, 0, 0, -20, 25, playerid);
        if(PlayerInfo[playerid][pAdmin] == 6) aDutyText[playerid] = CreateDynamic3DTextLabel(string, COLOR_DARKRED, 0, 0, -20, 25, playerid);
        Streamer_SetFloatData(STREAMER_TYPE_3D_TEXT_LABEL, aDutyText[playerid] , E_STREAMER_ATTACH_OFFSET_Z, 0.25);
    }
    else
    {
        if(Spec[playerid]) return SendClientMessage(playerid, COLOR_GREY, "You can't go off admin duty while spectating someone.");
        format(file, sizeof(file), "users/%s.ini",RPNU(playerid));
        SaveChar(playerid);
        SetPlayerName(playerid, dini_Get(file, "OldName"));
        aDuty[playerid] = 0;
        format(file, sizeof(file), "users/%s.ini", RPNU(playerid));
        format(string, sizeof(string), "AdmWarn: %s has went off admin duty. (Admin name: %s)", RPN(playerid), dini_Get(file, "AdminName"));
        SendAdminMessage(COLOR_DARKRED, 1, string);
        DestroyDynamic3DTextLabel(aDutyText[playerid]);
    }
    return 1;
}
aDuty rebuilt, instead of letting DINI create a new file for a admin, I made it so it'll get the admin name and it'll set the players name with the admin name instead of that creation of a admin name which is totally useless (Unless someone likes to login as an admin....) <- It lags a bit due to script being INI, If I can master MySQL, I'll change it to MySQL and send a copy to iRage if he wants
Reply
#26

Nice dude !
Reply
#27

Quote:
Originally Posted by Riddy
Посмотреть сообщение
pawn Код:
CMD:aduty(playerid, params[])
{
    new string[128], file[32];
    if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
    if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
    if(!aDuty[playerid])
    {
        format(file, sizeof(file), "users/%s.ini", RPNU(playerid));
        format(file, sizeof(file), "users/%s.ini", dini_Get(file, "AdminName"));
        if(!dini_Exists(file)) return SendClientMessage(playerid, COLOR_GREY, "Choose an admin name using /aname first.");
        format(file, sizeof(file), "users/%s.ini", RPNU(playerid));
        format(string, sizeof(string), "AdmWarn: %s has went on admin duty. (Admin name: %s)", RPN(playerid), dini_Get(file, "AdminName"));
        SendAdminMessage(COLOR_DARKRED, 1, string);
        SaveChar(playerid);
        aDuty[playerid] = 1;
        SetPlayerName(playerid, dini_Get(file, "AdminName"));
        GetPlayerIp(playerid, PlayerInfo[playerid][pIP], 16);
        format(string, sizeof(string), "%s", RPALN(playerid));
        if(IsValidDynamic3DTextLabel(aDutyText[playerid]))  DestroyDynamic3DTextLabel(aDutyText[playerid]);
        if(PlayerInfo[playerid][pAdmin] == 1) aDutyText[playerid] = CreateDynamic3DTextLabel(string, COLOR_LIGHTGREEN, 0, 0, -20, 25, playerid);
        if(PlayerInfo[playerid][pAdmin] == 2) aDutyText[playerid] = CreateDynamic3DTextLabel(string, COLOR_LIME, 0, 0, -20, 25, playerid);
        if(PlayerInfo[playerid][pAdmin] == 3) aDutyText[playerid] = CreateDynamic3DTextLabel(string, COLOR_YELLOW, 0, 0, -20, 25, playerid);
        if(PlayerInfo[playerid][pAdmin] == 4) aDutyText[playerid] = CreateDynamic3DTextLabel(string, COLOR_ORANGE, 0, 0, -20, 25, playerid);
        if(PlayerInfo[playerid][pAdmin] == 5) aDutyText[playerid] = CreateDynamic3DTextLabel(string, COLOR_RED, 0, 0, -20, 25, playerid);
        if(PlayerInfo[playerid][pAdmin] == 6) aDutyText[playerid] = CreateDynamic3DTextLabel(string, COLOR_DARKRED, 0, 0, -20, 25, playerid);
        Streamer_SetFloatData(STREAMER_TYPE_3D_TEXT_LABEL, aDutyText[playerid] , E_STREAMER_ATTACH_OFFSET_Z, 0.25);
    }
    else
    {
        if(Spec[playerid]) return SendClientMessage(playerid, COLOR_GREY, "You can't go off admin duty while spectating someone.");
        format(file, sizeof(file), "users/%s.ini",RPNU(playerid));
        SaveChar(playerid);
        SetPlayerName(playerid, dini_Get(file, "OldName"));
        aDuty[playerid] = 0;
        format(file, sizeof(file), "users/%s.ini", RPNU(playerid));
        format(string, sizeof(string), "AdmWarn: %s has went off admin duty. (Admin name: %s)", RPN(playerid), dini_Get(file, "AdminName"));
        SendAdminMessage(COLOR_DARKRED, 1, string);
        DestroyDynamic3DTextLabel(aDutyText[playerid]);
    }
    return 1;
}
aDuty rebuilt, instead of letting DINI create a new file for a admin, I made it so it'll get the admin name and it'll set the players name with the admin name instead of that creation of a admin name which is totally useless (Unless someone likes to login as an admin....) <- It lags a bit due to script being INI, If I can master MySQL, I'll change it to MySQL and send a copy to iRage if he wants
It's made to create a totally new file because admin account is totally different from RP account.
This prevents admins from setting their stats on their RP account thus preventing abuse.
Reply
#28

Quote:
Originally Posted by iRage
Посмотреть сообщение
It's made to create a totally new file because admin account is totally different from RP account.
This prevents admins from setting their stats on their RP account thus preventing abuse.
Ah, ok, but the problem is that dini has a lot of work to do, so I suggest moving to Y_INI, Instead of MySQL its either Y_INI or stick with Dini
Reply
#29

Quote:
Originally Posted by Mihkel
Посмотреть сообщение
How to set points to be captured?
Please answer me... I tried to edit points.cfg manually, but I didn't manage to do it properly. Any idea how to place points all over the map and make them work for families?
Reply
#30

good job man!
Reply
#31

Quote:
Originally Posted by michale
Посмотреть сообщение
How can I add more factions? Like Medic , FBI , Army ?
Code them
Reply
#32

When you enter any password it logs you in, how do I fix this?
Reply
#33

Hiya guys i have done the rcon login (password)

and 2nd password pops up and i enter the password it says welcome administator but it keeps popping up saying incorrect password its the default one which is set Poteter61 in the pwn file


HOW can i fix please
Reply
#34

if i type /exit i wont get out of the house how come ?
Reply
#35

[20:47:58] I couldn't load any gamemode scripts. Please verify your server.cfg
[20:47:58] It needs a gamemode0 line at the very least.
some one plzz help me i would love to have a server like this
Reply
#36

Nice cool
Reply
#37

Quote:
Originally Posted by WinterAce
Посмотреть сообщение
When you enter any password it logs you in, how do I fix this?
I have tested this on my server and it works fine have you added the folders in your server files

-factions
-logs
-users

try that good lick
Reply
#38

no work
vidio..?
Reply
#39

How can I change the interior of a house and once I use that interior in my house can others use it aswell?
is it a different virtual world for every player?
Reply
#40

Were is the Hitman HQ located?
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)