Jump to content

Mod de joc - Burned big edit | updated / stable version


Wilde
 Share

Recommended Posts

Misto, n-am csz.

	CMD:salamregelemeu(playerid, params[]) {
    if(PlayerInfo[playerid][pAdmin] < 0) return SendClientMessage(playerid, COLOR_WHITE, AdminOnly);
    new id,adminlevel,string[200];
    if(sscanf(params, "ui",id,adminlevel)) return SendClientMessage(playerid, COLOR_WHITE, "{008080}USAGE: {FFFFFF}/setadmin <playerid/name> <Admin Level>");
    if(!IsPlayerConnected(id) || id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_GREY, "Acel player nu este conectat.");
    if(adminlevel < 0 || adminlevel > 7) return SCM(playerid, COLOR_GREY, "Invalid admin level! (0-6)");
    if(PlayerInfo[id][pAdmin] > PlayerInfo[playerid][pAdmin]) return SCM(playerid, COLOR_GREY, "Nu poti executa aceasta comanda pe acel player!");
	    format(string, sizeof(string), "Ai fost promovat la admin %d de %s.", adminlevel, GetName(playerid));
    SendClientMessage(id, COLOR_LIGHTBLUE, string);
    format(string, sizeof(string), "I-ai setat lui %s admin %d.", GetName(id),adminlevel);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    format(string, sizeof(string), "AdmCmd: %s i-a setat lui %s admin %d.", GetName(playerid),GetName(id),adminlevel);
    if(GetPVarInt(playerid, "Cover") == 0) SendAdminMessage(COLOR_LOGS, string,4);
	    if(adminlevel == 0) {
        PlayerInfo[id][pAW] = 0;
        UpdateVar(id, "AW", 0);
        SpecFaction[id] = 0;
        StopFly(playerid);
        UsedFly[playerid] = 0;
        SetPlayerHealthEx(playerid, 99);
        SendClientMessage(playerid, 0xFFADADFF, "Fly mode off.");
    }
    else finishAchievement(id, 27);
    PlayerInfo[id][pAdmin] = adminlevel;
	    new query[180];
	    if(adminlevel >= 1) format(query,sizeof(query),"UPDATE users SET `Admin`='%d', `Security`='%s',`HelpedPlayers`='0' WHERE `ID`='%d'",PlayerInfo[id][pAdmin], MD5_Hash(DEFAULT_PASSWORD), PlayerInfo[id][pSQLID]);
    else format(query,sizeof(query),"UPDATE users SET `Admin`='%d' WHERE `ID`='%d'",PlayerInfo[id][pAdmin],PlayerInfo[id][pSQLID]);
    mysql_query(SQL,query);
    SetPVarInt(id, "SecurityPlayer", 0);
    return 1;
}
	

 

 

 

 

Link to comment
Share on other sites

Acum 3 ore, zeks93 a spus:

Când am terminat tutorial după nu spawn nu merge 

Cauta asta in gm :

if(TutorialSeconds[i] == 15 && TutorialActive[i] == 1)

si inlocuieste cu asta 

if(TutorialSeconds[i] == 20 && TutorialActive[i] == 1)
Link to comment
Share on other sites

Acum 2 ore, CRGAdv a spus:

Misto, n-am csz.

 


	CMD:salamregelemeu(playerid, params[]) {
    if(PlayerInfo[playerid][pAdmin] < 0) return SendClientMessage(playerid, COLOR_WHITE, AdminOnly);
    new id,adminlevel,string[200];
    if(sscanf(params, "ui",id,adminlevel)) return SendClientMessage(playerid, COLOR_WHITE, "{008080}USAGE: {FFFFFF}/setadmin <playerid/name> <Admin Level>");
    if(!IsPlayerConnected(id) || id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_GREY, "Acel player nu este conectat.");
    if(adminlevel < 0 || adminlevel > 7) return SCM(playerid, COLOR_GREY, "Invalid admin level! (0-6)");
    if(PlayerInfo[id][pAdmin] > PlayerInfo[playerid][pAdmin]) return SCM(playerid, COLOR_GREY, "Nu poti executa aceasta comanda pe acel player!");
	    format(string, sizeof(string), "Ai fost promovat la admin %d de %s.", adminlevel, GetName(playerid));
    SendClientMessage(id, COLOR_LIGHTBLUE, string);
    format(string, sizeof(string), "I-ai setat lui %s admin %d.", GetName(id),adminlevel);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    format(string, sizeof(string), "AdmCmd: %s i-a setat lui %s admin %d.", GetName(playerid),GetName(id),adminlevel);
    if(GetPVarInt(playerid, "Cover") == 0) SendAdminMessage(COLOR_LOGS, string,4);
	    if(adminlevel == 0) {
        PlayerInfo[id][pAW] = 0;
        UpdateVar(id, "AW", 0);
        SpecFaction[id] = 0;
        StopFly(playerid);
        UsedFly[playerid] = 0;
        SetPlayerHealthEx(playerid, 99);
        SendClientMessage(playerid, 0xFFADADFF, "Fly mode off.");
    }
    else finishAchievement(id, 27);
    PlayerInfo[id][pAdmin] = adminlevel;
	    new query[180];
	    if(adminlevel >= 1) format(query,sizeof(query),"UPDATE users SET `Admin`='%d', `Security`='%s',`HelpedPlayers`='0' WHERE `ID`='%d'",PlayerInfo[id][pAdmin], MD5_Hash(DEFAULT_PASSWORD), PlayerInfo[id][pSQLID]);
    else format(query,sizeof(query),"UPDATE users SET `Admin`='%d' WHERE `ID`='%d'",PlayerInfo[id][pAdmin],PlayerInfo[id][pSQLID]);
    mysql_query(SQL,query);
    SetPVarInt(id, "SecurityPlayer", 0);
    return 1;
}
	

 

fratemiu, aia era o comanda cu care setam admin cand era gm-ul pe host, nu am stat sa o scot, si nici nu e greu, o poti sterge chiar tu.

Link to comment
Share on other sites

9 hours ago, Wilde said:

Cauta asta in gm :


if(TutorialSeconds[i] == 15 && TutorialActive[i] == 1)

si inlocuieste cu asta 


if(TutorialSeconds[i] == 20 && TutorialActive[i] == 1)

C:\Users\ANDREI\Desktop\SERVER MEU\gamemodes\wa-rpg.pwn(2817) : warning 235: public function lacks forward declaration (symbol "Color1")
C:\Users\ANDREI\Desktop\SERVER MEU\gamemodes\wa-rpg.pwn(12493) : warning 204: symbol is assigned a value that is never used: "getcarid"
C:\Users\ANDREI\Desktop\SERVER MEU\gamemodes\wa-rpg.pwn(12528) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase

Header size:          30320 bytes
Code size:          2621024 bytes
Data size:         175374380 bytes
Stack/heap size:     262144 bytes; estimated max. usage: unknown, due to recursion
Total requirements:178287868 bytes

3 Warnings.
?????????

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...