Jump to content

Salut , am nevoie de ceva.


Recommended Posts

va rog ajutati-ma stiti bagu accela de la saints cu clanurile vreua sa ma ajutati sa il repar ofer +1

am incercat dar degeaba va rog mult va ramn dator.

Trb sa scriu tagul la clan cand intru pe server si chiar vreau sa rezov bagu va rog ajutati-ma sunt la inceput

Edited by Stelian aka eNeR.
Link to comment
Share on other sites

21 minutes ago, Stelian aka eNeR. said:

va rog ajutati-ma stiti bagu accela de la saints cu clanurile vreua sa ma ajutati sa il repar ofer +1

am incercat dar degeaba va rog mult va ramn dator.

Trb sa scriu tagul la clan cand intru pe server si chiar vreau sa rezov bagu va rog ajutati-ma sunt la inceput

"Bagu" ?

Link to comment
Share on other sites

6 minutes ago, Stelian aka eNeR. said:

 

sti gm-ul saints bug-ul acela la clanuri care trb sa intri cu tagu la clan pe server

Nu toti cunoastem acel gamemode , posteaza la ajutor scripting si detali cu scriptul

Edited by Edduard
  • Upvote 1

text.gif

SKIPE : EDUARD.SENNOW

Link to comment
Share on other sites

Just now, Edduard said:

Nu toti cunoastem acel gamemode urmeaza si tu modelul

ok mersi las tot ce tinte de sistemu de clan

public MySQLCheckClan(sqlclanname[])
{
    new query[128];
    new escstr[MAX_PLAYER_NAME];
    mysql_real_escape_string(sqlclanname, escstr);
    format(query, sizeof(query), "SELECT `ID` FROM users WHERE `ClanTag` = '%s'", escstr);
    mysql_query(SQL,query);
    mysql_store_result();
    if (mysql_num_rows()==0)
    {
        mysql_free_result();
        return 0;
    }
    else
    {
        new strid[32];
        new intid;
        mysql_fetch_row(strid);
        intid = strval(strid);
        mysql_free_result();
        return intid;
    }
}

 

mysql_fetch_field_row(result,"ClanTag"); strmid(PlayerInfo[playerid][pClanTag], result, 0, strlen(result), 255);
            mysql_fetch_field_row(result,"Clan"); PlayerInfo[playerid][pClan] = strval( result );

 

CMD:clanhelp(playerid, params[])
{
    if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi  mai intai.");
    if(PlayerInfo[playerid][pClan] < 1) return SendClientMessage(playerid, COLOR_DS,"{5CAD5C}Error: Your are not clan member.");
    SCM(playerid,COLOR_DS,"{3385FF}COMMAND: /cinvite /cuninvite /c /cmembers");
    return 1;
}
CMD:c(playerid, params[])
{
    if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi  mai intai.");
    if(PlayerInfo[playerid][pClan] < 1) return SendClientMessage(playerid, COLOR_DS,"{37B9C8}Error: Your are not in a clan.");
    new msj[100],string[150],sendername[25];
    if(PlayerInfo[playerid][pMuted] == 1)
    {
        format(string, sizeof(string), "You can not speak, you have been silenced for %d seconds.",PlayerInfo[playerid][pMuteTime]);
        SendClientMessage(playerid, COLOR_LIGHTRED, string);
        return 1;
    }
    if(sscanf(params, "s[100]",msj)) return SCM(playerid,COLOR_DS,"{B8DBFF}Syntax: /c <Message>");
    GetPlayerName(playerid,sendername,sizeof(sendername));
    foreach(Player,i)
    {
         if(PlayerInfo[pClan] != 0)
        {
            if(strcmp(PlayerInfo[playerid][pClanTag],PlayerInfo[pClanTag],true) == 0)
            {
                if(PlayerInfo[playerid][pClan] == 1)
                {
                    if(PlayerInfo[playerid][pCRank] == 1)
                    {
                        format(string,sizeof(string),"{3ea583}* Clan Member %s: %s",sendername,msj);
                    }
                    else
                    {
                        format(string,sizeof(string),"{3ea583}* Clan SubLeader %s: %s",sendername,msj);
                    }
                }
                else if(PlayerInfo[playerid][pClan] == 2)
                {
                    format(string,sizeof(string),"{3ea583}* Clan Leader %s: %s",sendername,msj);
                }
                SCM(i,COLOR_DS,string);
            }
        }
    }
    return 1;
}
CMD:cmembers(playerid, params[])
{
    if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi  mai intai.");
    if(PlayerInfo[playerid][pClan] >= 2 || PlayerInfo[playerid][pCRank] >= 2)
    {
        new count=0,iString[512],string[300],online[50],sendername[25];
        string[0] = 0;
        foreach(Player,i)
        {
             if(PlayerInfo[pClan] != 0)
            {
                if(strcmp(PlayerInfo[playerid][pClanTag],PlayerInfo[pClanTag],true) == 0)
                {
                    GetPlayerName(i, sendername, sizeof(sendername));
                    if(PlayerInfo[pSleeping] == 1)
                    {
                        format(string, sizeof(string), "Member %s(%d) (AFK)\n",sendername,i);
                        count++;
                    }
                    else if(PlayerInfo[pSleeping] == 0)
                    {
                        format(string, sizeof(string), "Member %s(%d)\n",sendername,i);
                        count++;
                    }
                    strcat(iString,string);
                    format(online, sizeof(online),"Member online: %d",count);
                }
            }
        }
        if(count == 0) return SCM(playerid,COLOR_DS,"{37B9C8}No clan members online at the moment.");
        ShowPlayerDialog(playerid, DIALOG_WANTEDON, DIALOG_STYLE_LIST, online, iString , "Close", "");
    }
    else return SendClientMessage(playerid, COLOR_DS,"{5CAD5C}Error: Your are not clan leader or clan subleader.");
    return 1;
}
CMD:asetcrank(playerid, params[])
{
    if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi  mai intai.");
    if(IsPlayerConnected(playerid))
    {
        new id,rank,giveplayer[25],string[184];
        if(sscanf(params, "ud",id,rank)) return SCM(playerid,COLOR_DS,"{B8DBFF}Syntax: /asetcrank <Name/Playerid> <1-Member 2-Subleader 3-Leader>");
        if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_DS, "{FFFFCC}Error: Player not connected.");
        GetPlayerName(id,giveplayer,sizeof(giveplayer));
        PlayerInfo[id][pCRank] = rank;
        format(string, sizeof(string), "UPDATE users SET `CRank`='%d' WHERE `name`='%s'",PlayerInfo[id][pCRank], giveplayer);
        mysql_query(SQL,string);
    }
    return 1;
}
CMD:cauninvite(playerid, params[])
{
    if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi  mai intai.");
    if(PlayerInfo[playerid][pAdmin] < 4) return SendClientMessage(playerid, COLOR_DS,AdminOnly);
    new id,string2[184],sendername[25],giveplayer[25],string[256],name2[25];
    if(sscanf(params, "u",id)) return SCM(playerid,COLOR_DS,"{B8DBFF}Syntax: /cauninvite <Name/Playerid>");
    if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_DS, "{FFFFCC}Error: Player not connected.");
    if(PlayerInfo[id][pClan] == 0) return SCM(playerid,COLOR_DS,"{37B9C8}This player is not in a clan.");
    GetPlayerName(id,name2,sizeof(name2));
    new intc = strlen(PlayerInfo[id][pClanTag]);
    GetPlayerName(id,giveplayer,sizeof(giveplayer));
    strdel(giveplayer, 0, intc);
    SetPlayerName(id,giveplayer);
    PlayerInfo[id][pClan] = 0;
    format(string2,sizeof(string2),"None");
    strmid(PlayerInfo[id][pClanTag], string2, 0, strlen(string2), 255);
    format(string,sizeof(string),"UPDATE users SET `ClanTag`='%s',`Clan`='0' WHERE `name`='%s'",string2,name2);
    mysql_query(SQL,string);
    format(string,sizeof(string),"UPDATE users SET `name`='%s' WHERE `name`='%s'",giveplayer,name2);
    mysql_query(SQL,string);
    if(PlayerInfo[id][pPhousekey] != 999 && strcmp(name2, HouseInfo[PlayerInfo[id][pPhousekey]][hOwner], true) == 0)
    {
        new houseid = PlayerInfo[id][pPhousekey];
        strmid(HouseInfo[houseid][hOwner], giveplayer, 0, strlen(giveplayer), 255);
        format(string,sizeof(string),"UPDATE `houses` SET `Owner`='%s' WHERE `ID`='%d'",giveplayer,houseid);
        mysql_query(SQL,string);
        OnPropTextdrawUpdate(1,PlayerInfo[id][pPhousekey]);
    }
    if(PlayerInfo[id][pPbiskey] != 255)
    {
        new bizid2 = PlayerInfo[id][pPbiskey];
        if(PlayerInfo[id][pPbiskey] > 100)
        {
            strmid(SBizzInfo[bizid2-100][sbOwner], giveplayer, 0, strlen(giveplayer), 255);
            format(string,sizeof(string),"UPDATE `sbizz` SET `Owner`='%s' WHERE `ID`='%d'",giveplayer,bizid2-100);
            mysql_query(SQL,string);
            OnPropTextdrawUpdate(3,bizid2-100);
        }
        else
        {
            strmid(BizzInfo[bizid2][bOwner], giveplayer, 0, strlen(giveplayer), 255);
            format(string,sizeof(string),"UPDATE `bizz` SET `Owner`='%s' WHERE `ID`='%d'",giveplayer,bizid2);
            mysql_query(SQL,string);
            OnPropTextdrawUpdate(2,PlayerInfo[id][pPbiskey]);
        }
    }
    if(PlayerInfo[id][pPcarkey] != 0)
    {
        new carid = PlayerInfo[id][pPcarkey];
        strmid(CarInfo[carid][cOwner], giveplayer, 0, strlen(giveplayer), 255);
        vUpdate(carid,cOwnerx);
    }
    if(PlayerInfo[id][pmotokey] != 0)
    {
        new carid = PlayerInfo[id][pmotokey];
        strmid(CarInfo[carid][cOwner], giveplayer, 0, strlen(giveplayer), 255);
        vUpdate(carid,cOwnerx);
    }
    if(PlayerInfo[id][phelikey] != 0)
    {
        new carid = PlayerInfo[id][phelikey];
        strmid(CarInfo[carid][cOwner], giveplayer, 0, strlen(giveplayer), 255);
        vUpdate(carid,cOwnerx);
    }
    if(PlayerInfo[id][pprcarkey] != 0)
    {
        new carid = PlayerInfo[id][pprcarkey];
        strmid(CarInfo[carid][cOwner], giveplayer, 0, strlen(giveplayer), 255);
        vUpdate(carid,cOwnerx);
    }
    GetPlayerName(playerid,sendername,sizeof(sendername));
    format(string,sizeof(string),"You have kicked %s from your clan.",giveplayer);
    SCM(playerid,COLOR_LIGHTBLUE,string);
    format(string,sizeof(string),"Admin %s kicked you from clan.",sendername);
    SCM(id,COLOR_LIGHTBLUE,string);
    PlayerInfo[id][pCRank] = 0;
    format(string, sizeof(string), "UPDATE users SET `CRank`='0' WHERE `name`='%s'", giveplayer);
    mysql_query(SQL,string);
    SCM(id,COLOR_LIGHTRED,"You kicked for database synchronization, please relogin.");
    KickEx(id);
    return 1;
}
CMD:claninfo(playerid, params[])
{
    if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi  mai intai.");
    if(PlayerInfo[playerid][pClan] < 1) return SendClientMessage(playerid, COLOR_DS,"{5CAD5C}Error: Your are not in a clan.");
    new string[100];
    format(string,sizeof(string),"Your clan is %s and you have rank %d.",PlayerInfo[playerid][pClanTag],PlayerInfo[playerid][pCRank]);
    SCM(playerid,COLOR_YELLOW,string);
    return 1;
}
CMD:crank(playerid, params[])
{
    if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi  mai intai.");
    if(PlayerInfo[playerid][pClan] < 2) return SendClientMessage(playerid, COLOR_DS,"{5CAD5C}Error: Your are not clan leader.");
    new id,rank,sendername[25],giveplayer[25],string[184];
    if(sscanf(params, "ud",id,rank)) return SCM(playerid,COLOR_DS,"{B8DBFF}Syntax: /crank <Name/Playerid> <1-Member 2-Sub-Leader>");
    if(id == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_DS, "{FFFFCC}Error: Player not connected.");
    if(rank < 1 || rank > 2) return SCM(playerid,COLOR_DS,"{37B9C8}Error: Invalid rank.");
    if(PlayerInfo[id][pClan] == 0) return SCM(playerid,COLOR_DS,"{37B9C8}This player is not in a clan.");
    if(PlayerInfo[id][pClan] == 2) return SCM(playerid,COLOR_DS,"{37B9C8}This player is clan leader.");
     if(strcmp(PlayerInfo[playerid][pClanTag],PlayerInfo[id][pClanTag],true) == 0)
    {
        GetPlayerName(playerid,sendername,sizeof(sendername));
        GetPlayerName(id,giveplayer,sizeof(giveplayer));
        format(string,sizeof(string),"* Clan Leader %s promoted you to rank %d.",sendername,rank);
        SendClientMessage(id, COLOR_LIGHTBLUE, string);
        format(string, sizeof(string), "* You have given %s Rank %d.", giveplayer,rank);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
        PlayerInfo[id][pCRank] = rank;
        format(string, sizeof(string), "UPDATE users SET `CRank`='%d' WHERE `name`='%s'", PlayerInfo[id][pCRank], giveplayer);
        mysql_query(SQL,string);
    }
    return 1;
}
CMD:cuninvite(playerid, params[])
{
    if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi  mai intai.");
    if(PlayerInfo[playerid][pClan] < 2) return SendClientMessage(playerid, COLOR_DS,"{5CAD5C}Error: Your are not clan leader.");
    new id,string2[184],sendername[25],giveplayer[25],string[256],name2[25];
    if(sscanf(params, "u",id)) return SCM(playerid,COLOR_DS,"{B8DBFF}Syntax: /cuninvite <Name/Playerid>");
    if(id == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_DS, "{FFFFCC}Error: Player not connected.");
    if(PlayerInfo[id][pClan] == 0) return SCM(playerid,COLOR_DS,"{37B9C8}This player is not in a clan.");
    if(PlayerInfo[id][pClan] == 2) return SCM(playerid,COLOR_DS,"{37B9C8}This player is clan leader.");
     if(strcmp(PlayerInfo[playerid][pClanTag],PlayerInfo[id][pClanTag],true) == 0)
    {
        GetPlayerName(id,name2,sizeof(name2));
        new intc = strlen(PlayerInfo[id][pClanTag]);
        GetPlayerName(id,giveplayer,sizeof(giveplayer));
        strdel(giveplayer, 0, intc);
        new newname = MySQLCheckAccount(giveplayer);
        if(newname != 0) return SCM(playerid,COLOR_DS,"{37B9C8}This name exist.");
        foreach(Player,i)
        {
            new namex[25];
            if(strcmp(namex,giveplayer,true) == 0 && strlen(namex) == strlen(giveplayer)) return SCM(playerid,COLOR_DS,"{37B9C8}This name exist.");
        }
        SetPlayerName(id,giveplayer);
        PlayerInfo[id][pClan] = 0;
        format(string2,sizeof(string2),"None");
        strmid(PlayerInfo[id][pClanTag], string2, 0, strlen(string2), 255);
        format(string,sizeof(string),"UPDATE users SET `ClanTag`='%s',`Clan`='0' WHERE `name`='%s'",string2,name2);
        mysql_query(SQL,string);
        format(string,sizeof(string),"UPDATE users SET `name`='%s' WHERE `name`='%s'",giveplayer,name2);
        mysql_query(SQL,string);
        if(PlayerInfo[id][pPhousekey] != 999 && strcmp(name2, HouseInfo[PlayerInfo[id][pPhousekey]][hOwner], true) == 0)
        {
            new houseid = PlayerInfo[id][pPhousekey];
            strmid(HouseInfo[houseid][hOwner], giveplayer, 0, strlen(giveplayer), 255);
            format(string,sizeof(string),"UPDATE `houses` SET `Owner`='%s' WHERE `ID`='%d'",giveplayer,houseid);
            mysql_query(SQL,string);
            OnPropTextdrawUpdate(1,PlayerInfo[id][pPhousekey]);
        }
        if(PlayerInfo[id][pPbiskey] != 255)
        {
            new bizid2 = PlayerInfo[id][pPbiskey];
            if(PlayerInfo[id][pPbiskey] > 100)
            {
                strmid(SBizzInfo[bizid2-100][sbOwner], giveplayer, 0, strlen(giveplayer), 255);
                format(string,sizeof(string),"UPDATE `sbizz` SET `Owner`='%s' WHERE `ID`='%d'",giveplayer,bizid2-100);
                mysql_query(SQL,string);
                OnPropTextdrawUpdate(3,bizid2-100);
            }
            else
            {
                strmid(BizzInfo[bizid2][bOwner], giveplayer, 0, strlen(giveplayer), 255);
                format(string,sizeof(string),"UPDATE `bizz` SET `Owner`='%s' WHERE `ID`='%d'",giveplayer,bizid2);
                mysql_query(SQL,string);
                OnPropTextdrawUpdate(2,PlayerInfo[id][pPbiskey]);
            }
        }
           if(PlayerInfo[id][pPcarkey] != 0)
        {
            new carid = PlayerInfo[id][pPcarkey];
            strmid(CarInfo[carid][cOwner], giveplayer, 0, strlen(giveplayer), 255);
            vUpdate(carid,cOwnerx);
        }
           if(PlayerInfo[id][pmotokey] != 0)
        {
            new carid = PlayerInfo[id][pmotokey];
            strmid(CarInfo[carid][cOwner], giveplayer, 0, strlen(giveplayer), 255);
            vUpdate(carid,cOwnerx);
        }
           if(PlayerInfo[id][phelikey] != 0)
        {
            new carid = PlayerInfo[id][phelikey];
            strmid(CarInfo[carid][cOwner], giveplayer, 0, strlen(giveplayer), 255);
            vUpdate(carid,cOwnerx);
        }
           if(PlayerInfo[id][pprcarkey] != 0)
        {
            new carid = PlayerInfo[id][pprcarkey];
            strmid(CarInfo[carid][cOwner], giveplayer, 0, strlen(giveplayer), 255);
            vUpdate(carid,cOwnerx);
        }
        GetPlayerName(playerid,sendername,sizeof(sendername));
        format(string,sizeof(string),"You have kicked %s from your clan.",giveplayer);
        SCM(playerid,COLOR_LIGHTBLUE,string);
        format(string,sizeof(string),"Clan Leader %s kicked you from your clan.",sendername);
        SCM(id,COLOR_LIGHTBLUE,string);
        PlayerInfo[id][pCRank] = 0;
        format(string, sizeof(string), "UPDATE users SET `CRank`='0' WHERE `name`='%s'", giveplayer);
        mysql_query(SQL,string);
    }
    else return SCM(playerid,COLOR_DS,"{37B9C8}This is not your member.");
    return 1;
}
CMD:cinvite(playerid, params[])
{
    if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi  mai intai.");
    if(IsPlayerConnected(playerid))
     {
        if(PlayerInfo[playerid][pClan] < 2) return SendClientMessage(playerid, COLOR_DS,"{5CAD5C}Error: Your are not clan leader.");
        new id,string[184],sendername[25],giveplayer[25];
        if(sscanf(params, "u",id)) return SCM(playerid,COLOR_DS,"{B8DBFF}Syntax: /cinvite <Name/Playerid>");
        if(PlayerInfo[id][pClan] != 0) return SCM(playerid,COLOR_DS,"{37B9C8}This player is in a clan.");
        if(id != INVALID_PLAYER_ID)
        {
            Clanidoff[id] = playerid;
            GetPlayerName(playerid,sendername,sizeof(sendername));
            GetPlayerName(id,giveplayer,sizeof(giveplayer));
            format(string, sizeof(string), "{B8FFDB}* You invited %s in your clan.",giveplayer);
            SendClientMessage(playerid, COLOR_DS, string);
            format(string, sizeof(string), "{B8FFDB}* %s has invited in clan %s, (Type /accept invite %d) to accept.",sendername,PlayerInfo[playerid][pClanTag],playerid);
            SendClientMessage(id, COLOR_DS, string);
        }
        else return SendClientMessage(playerid, COLOR_DS, "{FFFFCC}Error: Player not connected.");
    }
    return 1;
}
CMD:makeclan(playerid, params[])
{
    if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi  mai intai.");
    if(PlayerInfo[playerid][pAdmin] < 6) return SendClientMessage(playerid, COLOR_DS, AdminOnly);
    new id,tag[25],name[25],name2[25],string[256];
    if(sscanf(params, "us[25]",id,tag)) return SCM(playerid,COLOR_DS,"{B8DBFF}Syntax: /makeclan <Leader Name/Playerid> <Clan Tag>");
    if(PlayerInfo[id][pClan] >= 1) return SCM(playerid,COLOR_DS,"{37B9C8}This player is in a clan.");
    if(id == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_DS, "{FFFFCC}Error: Player not connected.");
    new clane = MySQLCheckClan(tag);
    if(clane != 0) return SCM(playerid,COLOR_DS,"{37B9C8}This clan exist, please chose another.");
    GetPlayerName(id,name2,sizeof(name2));
    GetPlayerName(id,name,sizeof(name));
    strins(name,tag, 0);
    new namet = strlen(name);
    if(namet > 24) return SCM(playerid,COLOR_DS,"{37B9C8}This name is large.");
    new newname = MySQLCheckAccount(name);
    if(newname != 0) return SCM(playerid,COLOR_DS,"{37B9C8}This name exist.");
    SetPlayerName(id,name);
    strmid(PlayerInfo[id][pClanTag], tag, 0, strlen(tag), 255);
    PlayerInfo[id][pClan] = 2;
    format(string,sizeof(string),"UPDATE users SET `ClanTag`='%s',`Clan`='2' WHERE `name`='%s'",tag,name2);
    mysql_query(SQL,string);
    format(string,sizeof(string),"UPDATE users SET `name`='%s' WHERE `name`='%s'",name,name2);
    mysql_query(SQL,string);
    if(PlayerInfo[id][pPhousekey] != 999 && strcmp(name2, HouseInfo[PlayerInfo[id][pPhousekey]][hOwner], true) == 0)
    {
        new houseid = PlayerInfo[id][pPhousekey];
        strmid(HouseInfo[houseid][hOwner], name, 0, strlen(name), 255);
        format(string,sizeof(string),"UPDATE `houses` SET `Owner`='%s' WHERE `ID`='%d'",name,houseid);
        mysql_query(SQL,string);
        OnPropTextdrawUpdate(1,PlayerInfo[id][pPhousekey]);
    }
    if(PlayerInfo[id][pPbiskey] != 255)
    {
        new bizid2 = PlayerInfo[id][pPbiskey];
        if(PlayerInfo[id][pPbiskey] > 100)
        {
            strmid(SBizzInfo[bizid2-100][sbOwner], name, 0, strlen(name), 255);
            format(string,sizeof(string),"UPDATE `sbizz` SET `Owner`='%s' WHERE `ID`='%d'",name,bizid2-100);
            mysql_query(SQL,string);
            OnPropTextdrawUpdate(3,bizid2-100);
        }
        else
        {
            strmid(BizzInfo[bizid2][bOwner], name, 0, strlen(name), 255);
            format(string,sizeof(string),"UPDATE `bizz` SET `Owner`='%s' WHERE `ID`='%d'",name,bizid2);
            mysql_query(SQL,string);
            OnPropTextdrawUpdate(2,PlayerInfo[id][pPbiskey]);
        }
    }
    if(PlayerInfo[id][pPcarkey] != 0)
    {
        new carid = PlayerInfo[id][pPcarkey];
        strmid(CarInfo[carid][cOwner], name, 0, strlen(name), 255);
        vUpdate(carid,cOwnerx);
    }
    if(PlayerInfo[id][pmotokey] != 0)
    {
        new carid = PlayerInfo[id][pmotokey];
        strmid(CarInfo[carid][cOwner], name, 0, strlen(name), 255);
        vUpdate(carid,cOwnerx);
    }
    if(PlayerInfo[id][phelikey] != 0)
    {
        new carid = PlayerInfo[id][phelikey];
        strmid(CarInfo[carid][cOwner], name, 0, strlen(name), 255);
        vUpdate(carid,cOwnerx);
    }
    if(PlayerInfo[id][pprcarkey] != 0)
    {
        new carid = PlayerInfo[id][pprcarkey];
        strmid(CarInfo[carid][cOwner], name, 0, strlen(name), 255);
        vUpdate(carid,cOwnerx);
    }
    new sendername[25];
    GetPlayerName(playerid,sendername,sizeof(sendername));
    format(string,sizeof(string),"Admin %s promoted you as leader of clan %s.",sendername,tag);
    SCM(id,COLOR_LIGHTBLUE,string);
    PlayerInfo[id][pCRank] = 3;
    format(string, sizeof(string), "UPDATE users SET `CRank`='3' WHERE `name`='%s'", name);
    mysql_query(SQL,string);
    return 1;
}

 

help

Link to comment
Share on other sites

Acum 9 ore, Stelian aka eNeR. a spus:

 

sti gm-ul saints bug-ul acela la clanuri care trb sa intri cu tagu la clan pe server

Cred ca tu nu ai inteles o faza....pe orice server cu sistem de clanuri trb sa te conectezi cu tagul la nick-name nu e bug!
 

Apropo vezi ca undeva in mijlocul barei de instrumete este un lucru numit spoiler foloseste-l

Edited by ★♕ Manu ★♕
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.