[GameMode] [0.3.7r2] High Desert Prison Roleplay [Y_INI][Custom Map/Inventory/100% Working]
#41

Amazing job +rep
Reply
#42

Nice script.
Reply
#43

Amazing! Unique and awesome
Reply
#44

Good job. +rep mate
Reply
#45

Woah, thats impressive!
Reply
#46

The admin code dont work:
I found this in the gamemode aijfaisjfaisfaisfafnskanf123123
Reply
#47

Quote:
Originally Posted by AssadMota
View Post
The admin code dont work:
I found this in the gamemode aijfaisjfaisfaisfafnskanf123123
Change admin command with this:
Code:
COMMAND:makeadmin(playerid, params[]) {
	if(PlayerStat[playerid][AdminLevel] < 5) return SendClientMessage(playerid, WHITE, "SERVER: Unknown command.");
	new targetid, alevel, str[128], olevel = PlayerStat[targetid][AdminLevel];
  
    if(sscanf(params,"ud", targetid, alevel))return SendClientMessage(playerid, GREY, "USAGE: /makeadmin [playerid] [adminlevel]");
    if(targetid == INVALID_PLAYER_ID) return SendClientMessage(playerid, GREY, "Target ID not found.");
    if(alevel < 0 || alevel > 5) return SendClientMessage(playerid, GREY, "Invalid admin level.");
    
    if(alevel > olevel) {
        format(str, sizeof(str), "Admin %s has promoted %s to level %d admin.", GetForumNameNC(playerid), GetForumNameNC(targetid), alevel);
        SendClientMessageToAll(RED, str);
        AdminActionLog(str);
        
        PlayerStat[targetid][AdminLevel] = alevel;

    	if (!olevel) {
			format(PlayerStat[targetid][AdminCode], 128, "A%d%d", random(100) + 10, random(100) + 10);

			format(str, sizeof str, "Your administrator code is: \"%s\". Please write it down somewhere!", PlayerStat[targetid][AdminCode]);
			SendClientMessage(targetid, RED, str);
    	}
    }
    else {
        format(str, sizeof(str), "Admin %s has demoted %s to level %d admin.", GetForumNameNC(playerid), GetForumNameNC(targetid), alevel);
        SendClientMessageToAll(RED, str);
        AdminActionLog(str);
        PlayerStat[targetid][AdminLevel] = alevel;
    }
    return 1;
}
Reply
#48

Quote:
Originally Posted by xMoBi
View Post
Change admin command with this:
Code:
COMMAND:makeadmin(playerid, params[]) {
        ....
    }
    return 1;
}
Damn, never thought about making a random code that will be sent to the user - I used to ask my admins for a secret phrase they wanted their admin code to be and changed it for them.
Reply
#49

Dude ITs Looks Awesome. but i Inside First_last.ini I cant find "Name" to change it. so when I Join with a new name and i request app. i cant aprouved my self. cuz i am not admin :C
Reply
#50

Quote:
Originally Posted by AnassGM
View Post
Dude ITs Looks Awesome. but i Inside First_last.ini I cant find "Name" to change it. so when I Join with a new name and i request app. i cant aprouved my self. cuz i am not admin :C
You need to change the file name, literally the file.
Reply
#51

Congratulations. Gamemode is very good!

Does Crafting System Not Work?
Reply
#52

Quote:
Originally Posted by DKNY
View Post
Congratulations. Gamemode is very good!

Does Crafting System Not Work?
It doesn't, I've started scripting it yet I've never finished.
Reply
#53

Hey dude, I am translating this Gamemode to Serbian. Once I change a single line of code, admin and Door systems don't work.

FYI, I am a N00b in Pawn but I am a Developer(C#, C++)
Reply
#54

Quote:
Originally Posted by Kaish
View Post
Hey dude, I am translating this Gamemode to Serbian. Once I change a single line of code, admin and Door systems don't work.

FYI, I am a N00b in Pawn but I am a Developer(C#, C++)
Show me what you've changed.
Reply
#55

I've deleted the gamemode. I'll start from ground up and check
Reply
#56

I'd like to start a server with this gm, anyone interested?
Reply
#57

Beautiful, only downside is Y_INI. SAMP could use a succesful prison roleplay server.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)