help me pls
#1

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

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;

Reply
#3

thnk u very much it work
Reply
#4

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


Forum Jump:


Users browsing this thread: 1 Guest(s)