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;
}