Zekkkk Posted February 18, 2017 Share Posted February 18, 2017 Salut ma puteti ajuta sa fac o comanda de chat adica sa imi pun chat la sist.ul meu de vip si doar ce au cont premium sa poata scrie in aceat chat multumeac mult pt ajutor (gamemod.ul este inceput de la bigzone) Quote Link to comment Share on other sites More sharing options...
AnV3rG0r_ Posted February 18, 2017 Share Posted February 18, 2017 1. Vrei tot mura in gura? fa singur si arata erorile 2. ai venit aici doar ca sa intrebi(1 post) si vrei tot mura in gura/..... Quote Link to comment Share on other sites More sharing options...
Liviu32 Posted February 18, 2017 Share Posted February 18, 2017 adaugi restrictia if (PlayerInfo[playe.rid][pPremiumAccount] == 1) Quote Link to comment Share on other sites More sharing options...
M1hai Posted February 19, 2017 Share Posted February 19, 2017 (edited) 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 February 19, 2017 by Jalco Quote Link to comment Share on other sites More sharing options...
Zekkkk Posted February 19, 2017 Author Share Posted February 19, 2017 Multumesc!!! Dc imi da errorile: Error 017 undefined symbol "qPlayerLogged" Si Error 017 underfined symbol "PlayerInfo" ??? Quote Link to comment Share on other sites More sharing options...
Kingsley Posted February 19, 2017 Share Posted February 19, 2017 Multumesc!!! Dc imi da errorile: Error 017 undefined symbol "qPlayerLogged" Si Error 017 underfined symbol "PlayerInfo" ??? Clar. Quote Link to comment Share on other sites More sharing options...
Zekkkk Posted February 19, 2017 Author Share Posted February 19, 2017 Am reZolvat.... Quote Link to comment Share on other sites More sharing options...
Zekkkk Posted February 19, 2017 Author Share Posted February 19, 2017 Frate dc cand dau /vc si scriu ceva se pune de 2 ori o data de ex eu scriu da si apare in chat de 2 ori ca am scris da ce trb sa modific??? Quote Link to comment Share on other sites More sharing options...
Roby Posted February 23, 2017 Share Posted February 23, 2017 Frate dc cand dau /vc si scriu ceva se pune de 2 ori o data de ex eu scriu da si apare in chat de 2 ori ca am scris da ce trb sa modific??? poate ai si cont premium și cont vip Quote Link to comment Share on other sites More sharing options...
Zekkkk Posted February 24, 2017 Author Share Posted February 24, 2017 Am rezolvat de mult dar am uitat sa spun... Quote Link to comment Share on other sites More sharing options...
Ionut Posted February 25, 2017 Share Posted February 25, 2017 Bafta! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.