SA-MP Forums Archive
help me pls - 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: help me pls (/showthread.php?tid=585318)



help me pls - samizaidi - 12.08.2015

i want chat tag to use it /bsstag and pls tell me how to add it


Re: help me pls - jlalt - 12.08.2015

Hope it work D:
PHP код:
#include <a_samp>
#include <zcmd>
new bsstag[MAX_PLAYERS];
CMD:bsstag(playerid,params[])
{
if(
IsPlayerConnected(playerid))
{
if(
bsstag[playerid] == 0)
{
bsstag[playerid] = 1;
SendClientMessage(playerid,-1,"BSS Tage Has Been Added To Your Name.");
return 
1;
}
else
{
bsstag[playerid] = 0;
SendClientMessage(playerid,-1,"BSS Tage Has Been Removed From Your Name.");
return 
1;
}
}
return 
1;
}
public 
OnPlayerText(playeridtext[])
{
if(
bsstag[playerid] == 1)
{
new 
pname[MAX_PLAYER_NAME];
new 
string[128];
GetPlayerName(playerid,pname,MAX_PLAYER_NAME);
format(string,sizeof(string),"{00FFFF}[BSS] %s: {FFFFFF}%s",pname,text[0]);
SendClientMessageToAll(-1,string);
return 
0;
}
return 
1;




Re: help me pls - samizaidi - 12.08.2015

thnk u very much it work


Re: help me pls - jlalt - 12.08.2015

Quote:
Originally Posted by samizaidi
Посмотреть сообщение
thnk u very much it work
no +rep ?