27.02.2012, 17:12
hi , i have this :
but the problem is the script doesn't show what player say only %s: , i hope you help me
pawn Код:
dcmd_vchat( playerid, params[] )
{
#pragma unused params
if( Vip[ playerid ] < 1 )
return SendClientMessage( playerid, COLOR_CERVENA, " [!] Only Vips can do that !" );
if(Vip[playerid] >= 1)
{
new name[24];
GetPlayerName(playerid, name, 24);
new string[300];
format(string, sizeof(string), "[VIP CHAT] %s [%d]: %s", name, playerid, string[1]);
SendClientMessage(playerid, COLOR_WHITE, string);
}
return 1;