01.12.2011, 20:01
(
Последний раз редактировалось English-Conceptz; 01.12.2011 в 22:32.
)
fixed dont reply
CMD:vip(playerid, params[])
{
new string[128],name[24];
if (gPlayerData[playerid][VIP] < 1) return SendClientMessage(playerid, -1, "Sorry, you cannot use the this Chat. Please Donate first.");
if(isnull(params)) return SendClientMessage(playerid, 0xFFFFFFF,"Syntax error. Correct usage: /vip [text]");
GetPlayerName(playerid,name,24);
format( string, sizeof( string ),"V.I.P Chat: {00FF00}%s(%d){FF5500}: %s",name playerid,params);
for(new a=0;a<MAX_PLAYERS;a++) if(IsPlayerConnected(a) && gPlayerData[playerid][VIP] >= 1) SendClientMessage(a,-1,string);
return 1;
}
CMD:vip( playerid, params[ ] )
{
if (gPlayerData[playerid][VIP] >= 1)
{
new string[128];
if( isnull( params ) ) return SendClientMessage(playerid, 0xFFFFFFF,"Syntax error. Correct usage: /vip [text]");
format( string, sizeof( string ),"V.I.P Chat: {00FF00}%s{FF5500}: %s", playerid, pText );
foreach(Player,i) // for(new i = 0; i < MAX_PLAYERS; i++)
{
if ( gPlayerData[i][VIP] >= 1 )
{
SendclientMessage( i , -1, string );
}
}
}
else if (gPlayerData[playerid][VIP] < 1)
{
SendClientMessage(playerid, -1, "Sorry, you cannot use the this Chat. Please Donate first.");
return 1;
}
return 1;
}
#include <foreach>
// At The Top
#include <foreach>
CMD:vip( playerid, params[ ] ) { if (gPlayerData[playerid][VIP] >= 1) { new string[128]; if( isnull( params ) ) return SendClientMessage(playerid, 0xFFFFFFF,"Syntax error. Correct usage: /vip [text]"); format( string, sizeof( string ),"V.I.P Chat: {00FF00}%s{FF5500}: %s", playerid, pText ); for(new i = 0; i < MAX_PLAYERS; i++) { if ( gPlayerData[i][VIP] >= 1 ) { SendClientMessage( i , -1, string ); } } } else if (gPlayerData[playerid][VIP] < 1) { SendClientMessage(playerid, -1, "Sorry, you cannot use the this Chat. Please Donate first."); return 1; } return 1; }
SendClientMessage( i , -1, string );
CMD:vip( playerid, params[ ] )
{
if (gPlayerData[playerid][VIP] >= 1)
{
new string[128], pText[128];
if( isnull( params ) ) return SendClientMessage(playerid, 0xFFFFFFF,"Syntax error. Correct usage: /vip [text]");
format( string, sizeof( string ),"V.I.P Chat: {00FF00}%s{FF5500}: %s", playerid, pText );
foreach(Player,i) // for(new i = 0; i < MAX_PLAYERS; i++)
{
if ( gPlayerData[i][VIP] >= 1 )
{
SendClientMessage ( i , -1, string );
}
}
}
else if (gPlayerData[playerid][VIP] < 1)
{
SendClientMessage(playerid, -1, "Sorry, you cannot use the this Chat. Please Donate first.");
return 1;
}
return 1;
}