Textdraws don't show with iPleomax's Profile System.
#1

Hey i downloaded this.
https://sampforum.blast.hk/showthread.php?tid=322020
And made into my gm.
Also i have made a /giverep and /settitle cmd.
Only the problem is it doesn't update textdraws/

Code:

pawn Код:
CMD:settitle(playerid, params[])
{
    new targetid, string[128];
    if(PlayerInfo[playerid][pAdmin] < 3) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
    if(sscanf(params, "us[128]", targetid, params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /settitle [PlayerID] [Pro/Trusted/Featured]");
    if(strcmp(params, "pro") == 0)
    {
        if(!Profile_Pro[targetid])
        {
            Profile_SetPro(targetid, bool:1);

            format(string, sizeof(string), "CmdWarn:{FFFFFF} You have given %s a {FF0606}PRO{FFFFFF} status on his profile.",RPNU(targetid));
            SendClientMessage(targetid,COLOR_RED, string);
            return 1;
        }
        if(Profile_Pro[targetid])
        {
            Profile_SetPro(targetid, bool:0);
            format(string, sizeof(string), "CmdWarn:{FFFFFF} You have removed %s his {FF0606}PRO{FFFFFF} status on his profile.",RPNU(targetid));
            SendClientMessage(targetid,COLOR_RED, string);
        }
    }
    if(strcmp(params,"trusted") == 0)
    {
        if(!Profile_Trusted[targetid])
        {
            Profile_SetTrusted(targetid, bool:1);

            format(string, sizeof(string), "CmdWarn:{FFFFFF} You have given %s a {FF0606}Trusted{FFFFFF} status on his profile.",RPNU(targetid));
            SendClientMessage(targetid,COLOR_RED, string);
            return 1;
        }
        if(Profile_Trusted[targetid])
        {
            Profile_SetTrusted(targetid, bool:0);
            format(string, sizeof(string), "CmdWarn:{FFFFFF} You have removed %s his {FF0606}Trusted{FFFFFF} status on his profile.",RPNU(targetid));
            SendClientMessage(targetid,COLOR_RED, string);
        }
    }
    if(strcmp(params, "featured") == 0)
    {
        if(!Profile_Featured[targetid])
        {
            Profile_SetFeatured(targetid, bool:1);
            format(string, sizeof(string), "CmdWarn:{FFFFFF} You have given %s a {FF0606}Featured{FFFFFF} status on his profile.",RPNU(targetid));
            SendClientMessage(targetid,COLOR_RED, string);
            return 1;
        }
        if(Profile_Featured[targetid])
        {
            Profile_SetFeatured(targetid, bool:2);
            format(string, sizeof(string), "CmdWarn:{FFFFFF} You have removed %s his {FF0606}Featured{FFFFFF} status on his profile.",RPNU(targetid));
            SendClientMessage(targetid,COLOR_RED, string);
        }
    }
    return 1;
}
pawn Код:
forward Profile_SetTrusted(playerid, bool:set);
public Profile_SetTrusted(playerid, bool:set)
{
    if(set)
    SendClientMessage(playerid, -1, #PROFILE"You have been awarded the tag: {111111}[{00FFAA}Trusted Member{111111}]");
    else
    SendClientMessage(playerid, -1, #PROFILE"\"{FFFFFF}Trusted Member{737373}\" tag has been removed from your profile");
    PlayerPlaySound(playerid, 1057, 0, 0, 0);
    Profile_Trusted[playerid] = set;
    RefreshProfile(playerid);
    return true;
}
This is under a stock wich opens the profile.
pawn Код:
if(Profile_Trusted[targetid])
    {
        TextDrawShowForPlayer(playerid,Awards[0][0]);
        TextDrawShowForPlayer(playerid,Awards[0][1]);
    }
And its still not showing that text draw. Its showing all msgs. But no textdraws.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)