Jump to content

/vc


Zekkkk
 Share

Recommended Posts

adaugi pe undeva mai sus:

 forward SendToVIP(color, const string[]);

apoi faci un public

public SendToVIP(color,const string[])
{
foreach(Player, i)
{
   if(IsPlayerConnected(i))
   {
if(gPlayerLogged[i] == 1)
{
if (PlayerInfo[i][pPremiumAccount] == 1)
{
SendClientMessage(i, color, string);
}
}
}
}
printf("%s", string);
return 1;
}

Iar apoi comanda, care e cea mai usoara. Bine ca...tot ce am facut mai sus e usor:))

 
CMD:vipchat(playerid, params[])
{
    if(isnull(params)) return SCM(playerid, COLOR_GREEN, "Usage: /vip [text]");
    new string [256];
   if(PlayerInfo[playerid][pPremiumAccount] == 1)
   {
   format(string, sizeof(string), "* VIP %s: %s", GetName(playerid), params);
   SendToVIP(COLOR_RED, string);
   }
   else return SCM(playerid, -1, "Nu ai cont VIP.");
    }
    return 1;
}

//Poftim aici pastebin-ul: http://pastebin.com/qTe60iw2

Edited by Jalco
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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. 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.