SA-MP Forums Archive
Need help with comand - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Need help with comand (/showthread.php?tid=362716)



Need help with comand - MadafakaPro - 25.07.2012

fixed..


Re: Need help with comand - MadafakaPro - 25.07.2012

Bump!
Please help.


Re : Need help with comand - lelemaster - 25.07.2012

pawn Код:
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;
        }
    }



Re: Need help with comand - MadafakaPro - 26.07.2012

fixed


Re: Need help with comand - Marlon_Lorran - 26.07.2012

Код:
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;
   }
}