SA-MP Forums Archive
Some One Please Help [Urgent] Giving +rep - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Some One Please Help [Urgent] Giving +rep (/showthread.php?tid=472528)



Some One Please Help [Urgent] Giving +rep - bond1999 - 29.10.2013

Hi , guys i am using a filterscript by @Riichard , the text colour changer , umm can someone please help me , if i install this filter script in my server all players can use this but i want that this filterscript should only be used by VIP members can someone please help me ! it will be highly appreciated i want this fs for VIP [Players Only] someone please help.


please pm me your skype


EDIT : // i am very suck at scrapting , plis provide ur skype


Re: Some One Please Help [Urgent] Giving +rep - bond1999 - 29.10.2013

some one please help , i need serious help


Re: Some One Please Help [Urgent] Giving +rep - SAMProductions - 29.10.2013

Just Simply Add "if(PlayerInfo[playerid][VipLevel] >= 1)", that's my VipLevel Function,

Like this,

pawn Код:
CMD:ctext(playerid)
{
        if(PlayerInfo[playerid][VipLevel] >= 1) return SendClientMessage(playerid, -1,">ERROR< You must be VIP Level 1 to use this Command.");
    ShowPlayerDialog(playerid,Texts,DIALOG_STYLE_LIST,"Choose Your Favorite Color","Text 1 > {FFFF00}Yellow\nText 2 > {FF0000}Red\nText 3 > {00BFFF}Blue\nText 4 > {00FF00}Green\nText 5 > {696969}Gray\nText 6 > {FF00FF}Pink\nText 7 > White","Change","Cancel");
    format(str, sizeof(str), "|| %s » This seeing the text colors {FFFFFF}/CText", rName(playerid));
    SendClientMessageToAll(0x828282AA, str);
    return 1;
}
CMD:textcall(playerid)
{
        if(PlayerInfo[playerid][VipLevel] >= 1) return SendClientMessage(playerid, -1,">ERROR< You must be VIP Level 1 to use this Command.");
    ShowPlayerDialog(playerid,TextsAdm,DIALOG_STYLE_LIST,"Choose Color","Text 1 > {FFFF00}Yellow\nText 2 > {FF0000}Red\nText 3 > {00BFFF}Blue\nText 4 > {00FF00}Green\nText 5 > {696969}Gray\nText 6 > {FF00FF}Pink\nText 7 > White","Change","Cancel");
    return 1;
}
Just Change "if(PlayerInfo[playerid][VipLevel] >= 1)" to your Vip Level Function.

and If you want to make it for RCON Admins only

Use:

pawn Код:
CMD:ctext(playerid)
{
        if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1,">ERROR< You don't is administrator rcon.");
    ShowPlayerDialog(playerid,Texts,DIALOG_STYLE_LIST,"Choose Your Favorite Color","Text 1 > {FFFF00}Yellow\nText 2 > {FF0000}Red\nText 3 > {00BFFF}Blue\nText 4 > {00FF00}Green\nText 5 > {696969}Gray\nText 6 > {FF00FF}Pink\nText 7 > White","Change","Cancel");
    format(str, sizeof(str), "|| %s » This seeing the text colors {FFFFFF}/CText", rName(playerid));
    SendClientMessageToAll(0x828282AA, str);
    return 1;
}
CMD:textcall(playerid)
{
        if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1,">ERROR< You don't is administrator rcon.");
    ShowPlayerDialog(playerid,TextsAdm,DIALOG_STYLE_LIST,"Choose Color","Text 1 > {FFFF00}Yellow\nText 2 > {FF0000}Red\nText 3 > {00BFFF}Blue\nText 4 > {00FF00}Green\nText 5 > {696969}Gray\nText 6 > {FF00FF}Pink\nText 7 > White","Change","Cancel");
    return 1;
}



Re: Some One Please Help [Urgent] Giving +rep - bond1999 - 29.10.2013

Quote:
Originally Posted by SAMProductions
Посмотреть сообщение
Just Simply Add "if(PlayerInfo[playerid][VipLevel] >= 1)", that's my VipLevel Function,

Like this,

pawn Код:
CMD:ctext(playerid)
{
        if(PlayerInfo[playerid][VipLevel] >= 1) return SendClientMessage(playerid, -1,">ERROR< You must be VIP Level 1 to use this Command.");
    ShowPlayerDialog(playerid,Texts,DIALOG_STYLE_LIST,"Choose Your Favorite Color","Text 1 > {FFFF00}Yellow\nText 2 > {FF0000}Red\nText 3 > {00BFFF}Blue\nText 4 > {00FF00}Green\nText 5 > {696969}Gray\nText 6 > {FF00FF}Pink\nText 7 > White","Change","Cancel");
    format(str, sizeof(str), "|| %s » This seeing the text colors {FFFFFF}/CText", rName(playerid));
    SendClientMessageToAll(0x828282AA, str);
    return 1;
}
CMD:textcall(playerid)
{
        if(PlayerInfo[playerid][VipLevel] >= 1) return SendClientMessage(playerid, -1,">ERROR< You must be VIP Level 1 to use this Command.");
    ShowPlayerDialog(playerid,TextsAdm,DIALOG_STYLE_LIST,"Choose Color","Text 1 > {FFFF00}Yellow\nText 2 > {FF0000}Red\nText 3 > {00BFFF}Blue\nText 4 > {00FF00}Green\nText 5 > {696969}Gray\nText 6 > {FF00FF}Pink\nText 7 > White","Change","Cancel");
    return 1;
}
Just Change "if(PlayerInfo[playerid][VipLevel] >= 1)" to your Vip Level Function.

and If you want to make it for RCON Admins only

Use:

pawn Код:
CMD:ctext(playerid)
{
        if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1,">ERROR< You don't is administrator rcon.");
    ShowPlayerDialog(playerid,Texts,DIALOG_STYLE_LIST,"Choose Your Favorite Color","Text 1 > {FFFF00}Yellow\nText 2 > {FF0000}Red\nText 3 > {00BFFF}Blue\nText 4 > {00FF00}Green\nText 5 > {696969}Gray\nText 6 > {FF00FF}Pink\nText 7 > White","Change","Cancel");
    format(str, sizeof(str), "|| %s » This seeing the text colors {FFFFFF}/CText", rName(playerid));
    SendClientMessageToAll(0x828282AA, str);
    return 1;
}
CMD:textcall(playerid)
{
        if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1,">ERROR< You don't is administrator rcon.");
    ShowPlayerDialog(playerid,TextsAdm,DIALOG_STYLE_LIST,"Choose Color","Text 1 > {FFFF00}Yellow\nText 2 > {FF0000}Red\nText 3 > {00BFFF}Blue\nText 4 > {00FF00}Green\nText 5 > {696969}Gray\nText 6 > {FF00FF}Pink\nText 7 > White","Change","Cancel");
    return 1;
}
bro please give ur skype


Re: Some One Please Help [Urgent] Giving +rep - bond1999 - 29.10.2013

please pm me ur skype pleaseseee i need help!!!!