23.03.2011, 00:12
Well i make vip chat but when i type in /vchat and talk it works and i could hear my other friend but when i type, he cant see what i typed or what he typed
pawn Код:
CMD:vchat(playerid, params[])
{
new id,str[128], name[MAX_PLAYER_NAME];
if(sscanf(params,"s",str)) return SendClientMessage(playerid,0xFF9900AA, "USAGE: /vchat [text]");
GetPlayerName(playerid,name,sizeof(name));
format(str, sizeof(str), "[VIPCHAT] %s: %s",name,str);
{
if(IsPlayerConnected(id))
{
if(PlayerData[playerid][vip] > 0)
{
SendClientMessage(id,0xFF9900AA,str);
}
}
}
return 1;
}