Код:
CMD:jetpack(playerid, params[])
{
if(gPlayerClass[playerid] == AIRFORCE)//if the player is Airforce
{
SetPlayerSpecialAction(playerid,2);//This is command for the Airforce, he can spawn jetpack by /jp command
return 1;
}
}
CMD:dis(playerid, params[])
{
if(gPlayerClass[playerid] == SPY)
{
ShowPlayerDialog(playerid, 88, DIALOG_STYLE_MSGBOX, "{6EF83C}Spy Disguise Kit:", "/usa\n/sov\n/japan\n/england\n/pak\n/ger", "Disguise ","Exit");//Replace the team1,2,3 to your game teams name and colors, by /team1 or /team2 or / team3 the player gets disguise to enemy soldier but don't changes its team
return 1;
}
}
CMD:usa(playerid, params[])
{
if(gPlayerClass[playerid] == SPY)//if player class spy
{
ShowPlayerDialog(playerid, 11, DIALOG_STYLE_MSGBOX, "{6EF83C}Disguised to usa:", "Team: USA\nColor: Blue\nSkin: 287\nDisguised Class: Soldier", "Ok ","");
SetPlayerSkin(playerid,287);//skin set to S.W.A.T, can change to ur team skin
SetPlayerColor(playerid,COLOR_BLUE);//Color blue
return 1;
}
}
CMD:sov(playerid, params[])
{
if(gPlayerClass[playerid] == SPY)//if player class spy
{
ShowPlayerDialog(playerid, 22, DIALOG_STYLE_MSGBOX, "{6EF83C}Disguised to sov:", "Team: Sov\nColor: Red\nSkin: 285\nDisguised Class: Soldier", "Ok ","");
SetPlayerSkin(playerid,285);//skin set to Military, can change to ur team skin
SetPlayerColor(playerid,COLOR_RED);//Color red
return 1;
}
}
CMD:japan(playerid, params[])
{
if(gPlayerClass[playerid] == SPY)//if player class spy
{
ShowPlayerDialog(playerid, 33, DIALOG_STYLE_MSGBOX, "{6EF83C}Disguised to japan:", "Team: Japan\nColor: Green\nSkin: 73\nDisguised Class: Soldier", "Ok ","");
SetPlayerSkin(playerid,73);//skin set to Rockstar, can change to ur team skin
SetPlayerColor(playerid,COLOR_BRIGHTRED);//Color green
return 1;
}
}
CMD:england(playerid, params[])
{
if(gPlayerClass[playerid] == SPY)//if player class spy
{
ShowPlayerDialog(playerid, 33, DIALOG_STYLE_MSGBOX, "{6EF83C}Disguised to england:", "Team: England\nColor: Orange\nSkin: 30\nDisguised Class: Soldier", "Ok ","");
SetPlayerSkin(playerid,30);//skin set to Rockstar, can change to ur team skin
SetPlayerColor(playerid,COLOR_LIGHTBLUE);//Color orange
return 1;
}
}
CMD:pak(playerid, params[])
{
if(gPlayerClass[playerid] == SPY)//if player class spy
{
ShowPlayerDialog(playerid, 33, DIALOG_STYLE_MSGBOX, "{6EF83C}Disguised to PAK:", "Team: Pakistan\nColor: Green\nSkin: 122\nDisguised Class: Soldier", "Ok ","");
SetPlayerSkin(playerid,122);//skin set to Rockstar, can change to ur team skin
SetPlayerColor(playerid,C_GANG_GREEN);//Color orange
return 1;
}
}
CMD:ger(playerid,params[])
{
if(gPlayerClass[playerid] == SPY)//if player class spy
{
ShowPlayerDialog(playerid, 33, DIALOG_STYLE_MSGBOX, "{6EF83C}Disguised to GERMANY:", "Team: Germany\nColor: Yellow\nSkin: 121\nDisguised Class: Soldier", "Ok ","");
SetPlayerSkin(playerid,121);//skin set to Rockstar, can change to ur team skin
SetPlayerColor(playerid,COLOR_YELLOW);//Color orange
return 1;
}
}
pawn Код:
if(gPlayerClass[playerid] == SPY)//if player class spy
{
ShowPlayerDialog(playerid, 33, DIALOG_STYLE_MSGBOX, "{6EF83C}Disguised to GERMANY:", "Team: Germany\nColor: Yellow\nSkin: 121\nDisguised Class: Soldier", "Ok ","");
SetPlayerSkin(playerid,121);//skin set to Rockstar, can change to ur team skin
SetPlayerColor(playerid,COLOR_YELLOW);//Color orange
return 1;
}
return 1;
}