if (!strcmp("/toggold", cmdtext, true, 10))
{
new gold[MAX_PLAYERS];
if(IsPlayerVipType(playerid, 1 || 2 || 3))
{
gold[playerid] = 0;
SetPlayerColor(playerid, COLOR_GOLD);
SendClientMessage(playerid, COLOR_WHITE, "[Donator Info] Your color is now set to Gold");
}
else
{
gold[playerid] = 1;
SetPlayerColor(playerid, COLOR_WHITE);
SendClientMessage(playerid, COLOR_WHITE, "[Donator Info] You have set your Color back to White");
}
return 1;
}
if (!strcmp("/toggold", cmdtext, true, 10))
{
new gold[MAX_PLAYERS];
if(IsPlayerVipType(playerid, 1 || 2 || 3))
{
if(gold[playerid] = 1){
gold[playerid] = 0;
SetPlayerColor(playerid, COLOR_GOLD);
SendClientMessage(playerid, COLOR_WHITE, "[Donator Info] Your color is now set to Gold");
}
}
else
{
if(gold[playerid] = 0)
{
gold[playerid] = 1;
SetPlayerColor(playerid, COLOR_WHITE);
SendClientMessage(playerid, COLOR_WHITE, "[Donator Info] You have set your Color back to White");
}
}
return 1;
}
if (!strcmp("/toggold", cmdtext, true, 10))
{
new gold[MAX_PLAYERS];
if(IsPlayerVipType(playerid, 1 || 2 || 3))
{
gold[playerid] = 1;
SetPlayerColor(playerid, COLOR_GOLD);
SendClientMessage(playerid, COLOR_WHITE, "[Donator Info] Your color is now set to Gold");
}
else if(gold[playerid] == 0)
{
gold[playerid] = 0;
SetPlayerColor(playerid, COLOR_WHITE);
SendClientMessage(playerid, COLOR_WHITE, "[Donator Info] You have set your Color back to White");
}
return 1;
}
if(IsPlayerVipType(playerid, 1 || 2 || 3))
pawn Код:
|
1 || 2 || 3
if (!strcmp("/toggold", cmdtext, true, 10))
{
new gold[MAX_PLAYERS];
if(IsPlayerVipType(playerid, 1) || IsPlayerVipType(playerid, 2) || IsPlayerVipType(playerid, 3))
{
if(gold[playerid] == 0)
{
gold[playerid] = 1;
SetPlayerColor(playerid, COLOR_GOLD);
SendClientMessage(playerid, COLOR_WHITE, "[Donator Info] Your color is now set to Gold");
}
else if(gold[playerid] == 1)
{
gold[playerid] = 0;
SetPlayerColor(playerid, COLOR_WHITE);
SendClientMessage(playerid, COLOR_WHITE, "[Donator Info] You have set your Color back to White");
}
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "[Error] You're not a VIP");
}
return 1;
}
new gold[ MAX_PLAYERS ];
if (!strcmp("/toggold", cmdtext, true, 8))
{
if ( IsPlayerVipType( playerid, 1 ) ||
IsPlayerVipType( playerid, 2 ) ||
IsPlayerVipType( playerid, 3 )
)
{
if ( gold[ playerid ] == 1 )
{
gold [playerid ] = 0;
SetPlayerColor( playerid, COLOR_GOLD );
SendClientMessage( playerid, COLOR_WHITE, "[Donator Info] Your color is now set to Gold" );
}
else if ( gold[ playerid ] == 0 )
{
gold[ playerid ] = 1;
SetPlayerColor( playerid, COLOR_WHITE );
SendClientMessage( playerid, COLOR_WHITE, "[Donator Info] You have set your Color back to White" );
}
} else return SendClientMessage( playerid, COLOR_RED, "You are not a VIP Member");
return 1;
}