25.07.2012, 12:26
(
Последний раз редактировалось MadafakaPro; 26.01.2013 в 00:21.
)
fixed..
new FactionChat = 1;
if(strcmp(cmd,"/fchat",true) == 0)
{
if(PlayerInfo[playerid][tier]>1) return SendClientError(playerid,"You cannot use this command");
if(FactionChat == 0)
{
switch(PlayerInfo[playerid][playerteam])
{
case CORLEONE: corleonechat=true;
case TATTAGLIA: tattagliachat=true;
case STRACCI: straccichat=true;
case CUNEO: cuneochat=true;
case BARZINI: barzinichat=true;
case SICILIONE: sicilionechat=true;
case TRIAD: triadchat=true;
case COPS: copschat=true;
case HITMAN: hitmanchat=true;
case SASF: sasfchat=true;
case POLITIC: politicchat=true;
case SDC: sdcchat=true;
case CDC: cdcchat=true;
case LATINKINGS: latinchat=true;
case DOWNTOWNKINGS: dtkingschat=true;
case FBI: fbichat=true;
}
SendClientMessageToTeam(PlayerInfo[playerid][playerteam],".: Faction: Faction chat has been enabled :.",COLOR_LIGHTBLUE);
FactionChat = 1;
return 1;
}
else if(FactionChat == 1)
{
switch(PlayerInfo[playerid][playerteam])
{
case CORLEONE: corleonechat=false;
case TATTAGLIA: tattagliachat=false;
case STRACCI: straccichat=false;
case CUNEO: cuneochat=false;
case BARZINI: barzinichat=false;
case SICILIONE: sicilionechat=false;
case TRIAD: triadchat=false;
case COPS: copschat=false;
case HITMAN: hitmanchat=false;
case SASF: sasfchat=false;
case POLITIC: politicchat=false;
case SDC: sdcchat=false;
case CDC: cdcchat=false;
case LATINKINGS: latinchat=false;
case DOWNTOWNKINGS: dtkingschat=false;
case FBI: fbichat=false;
}
SendClientMessageToTeam(PlayerInfo[playerid][playerteam],".: Faction: Faction chat has been disabled :.",COLOR_LIGHTBLUE);
FactionChat = 0;
return 1;
}
}
if(strcmp(cmd,"/togpm",true)==0)
{
if(PlayerTemp[playerid][pmlock] == 0){
PlayerTemp[playerid][pmlock] = 1;
InfoText(playerid,"Private Messages disabled",5);
return true;
}
else{
PlayerTemp[playerid][pmlock] = 0;
InfoText(playerid,"Private Messages enabled",5);
return true;
}
}