PHP код:
public Team1(playerid)
{
switch(random(6)) // Negros
{
case 0:
{
GameTextForPlayer(playerid, "~g~Skin Changed!", 3000, 3);
switch(random(8))
{
case 0: {SetPlayerSkin(playerid, 21);
SetSpawnInfo(playerid,0,21,-2636.9077,260.5389,4.3281,75.9486,30,150,25,50,29,150);}
case 1: {SetPlayerSkin(playerid, 19);
SetSpawnInfo(playerid,0,19,-2636.9077,260.5389,4.3281,75.9486,30,150,25,50,29,150);}
case 2: {SetPlayerSkin(playerid, 183);
SetSpawnInfo(playerid,0,183,-2636.9077,260.5389,4.3281,75.9486,30,150,25,50,29,150);}
case 3: {SetPlayerSkin(playerid, 104);
SetSpawnInfo(playerid,0,104,-2636.9077,260.5389,4.3281,75.9486,30,150,25,50,29,150);}
case 4: {SetPlayerSkin(playerid, 28);
SetSpawnInfo(playerid,0,28,-2636.9077,260.5389,4.3281,75.9486,30,150,25,50,29,150);}
case 5: {SetPlayerSkin(playerid, 22);
SetSpawnInfo(playerid,0,22,-2636.9077,260.5389,4.3281,75.9486,30,150,25,50,29,150);}
case 6: {SetPlayerSkin(playerid, 190);
SetSpawnInfo(playerid,0,190,-2636.9077,260.5389,4.3281,75.9486,30,150,25,50,29,150);}
case 7: {SetPlayerSkin(playerid, 195);
SetSpawnInfo(playerid,0,195,-2636.9077,260.5389,4.3281,75.9486,30,150,25,50,29,150);}
}
SetPlayerColor(playerid, color_NEGROS);
}
case 1:
{
GameTextForPlayer(playerid, "~g~Skin Changed!", 3000, 3);
switch(random(8))
{
case 0: {SetPlayerSkin(playerid, 21);
SetSpawnInfo(playerid,0,21,-2659.7424,260.6835,4.6328,20.2774,30,150,25,50,29,150);}
case 1: {SetPlayerSkin(playerid, 19);
SetSpawnInfo(playerid,0,19,-2659.7424,260.6835,4.6328,20.2774,30,150,25,50,29,150);}
case 2: {SetPlayerSkin(playerid, 183);
SetSpawnInfo(playerid,0,183,-2659.7424,260.6835,4.6328,20.2774,30,150,25,50,29,150);}
case 3: {SetPlayerSkin(playerid, 104);
SetSpawnInfo(playerid,0,104,-2659.7424,260.6835,4.6328,20.2774,30,150,25,50,29,150);}
case 4: {SetPlayerSkin(playerid, 28);
SetSpawnInfo(playerid,0,28,-2659.7424,260.6835,4.6328,20.2774,30,150,25,50,29,150);}
case 5: {SetPlayerSkin(playerid, 22);
SetSpawnInfo(playerid,0,22,-2659.7424,260.6835,4.6328,20.2774,30,150,25,50,29,150);}
case 6: {SetPlayerSkin(playerid, 190);
SetSpawnInfo(playerid,0,190,-2659.7424,260.6835,4.6328,20.2774,30,150,25,50,29,150);}
case 7: {SetPlayerSkin(playerid, 195);
SetSpawnInfo(playerid,0,195,-2659.7424,260.6835,4.6328,20.2774,30,150,25,50,29,150);}
}
SetPlayerColor(playerid, color_NEGROS);
}
case 2:
{
GameTextForPlayer(playerid, "~g~Skin Changed!", 3000, 3);
switch(random(8))
{
case 0: {SetPlayerSkin(playerid, 21);
SetSpawnInfo(playerid,0,21,-2695.9822,262.4749,4.6328,258.9438,30,150,25,50,29,150);}
case 1: {SetPlayerSkin(playerid, 19);
SetSpawnInfo(playerid,0,19,-2695.9822,262.4749,4.6328,258.9438,30,150,25,50,29,150);}
case 2: {SetPlayerSkin(playerid, 183);
SetSpawnInfo(playerid,0,183,-2695.9822,262.4749,4.6328,258.9438,30,150,25,50,29,150);}
case 3: {SetPlayerSkin(playerid, 104);
SetSpawnInfo(playerid,0,104,-2695.9822,262.4749,4.6328,258.9438,30,150,25,50,29,150);}
case 4: {SetPlayerSkin(playerid, 28);
SetSpawnInfo(playerid,0,28,-2695.9822,262.4749,4.6328,258.9438,30,150,25,50,29,150);}
case 5: {SetPlayerSkin(playerid, 22);
SetSpawnInfo(playerid,0,22,-2695.9822,262.4749,4.6328,258.9438,30,150,25,50,29,150);}
case 6: {SetPlayerSkin(playerid, 190);
SetSpawnInfo(playerid,0,190,-2695.9822,262.4749,4.6328,258.9438,30,150,25,50,29,150);}
case 7: {SetPlayerSkin(playerid, 195);
SetSpawnInfo(playerid,0,195,-2695.9822,262.4749,4.6328,258.9438,30,150,25,50,29,150);}
}
SetPlayerColor(playerid, color_NEGROS);
}
case 3:
{
GameTextForPlayer(playerid, "~g~Skin Changed!", 3000, 3);
switch(random(8))
{
case 0: {SetPlayerSkin(playerid, 21);
SetSpawnInfo(playerid,0,21,-2694.5286,276.3913,4.3359,230.1168,30,150,25,50,29,150);}
case 1: {SetPlayerSkin(playerid, 19);
SetSpawnInfo(playerid,0,19,-2694.5286,276.3913,4.3359,230.1168,30,150,25,50,29,150);}
case 2: {SetPlayerSkin(playerid, 183);
SetSpawnInfo(playerid,0,183,-2694.5286,276.3913,4.3359,230.1168,30,150,25,50,29,150);}
case 3: {SetPlayerSkin(playerid, 104);
SetSpawnInfo(playerid,0,104,-2694.5286,276.3913,4.3359,230.1168,30,150,25,50,29,150);}
case 4: {SetPlayerSkin(playerid, 28);
SetSpawnInfo(playerid,0,28,-2694.5286,276.3913,4.3359,230.1168,30,150,25,50,29,150);}
case 5: {SetPlayerSkin(playerid, 22);
SetSpawnInfo(playerid,0,22,-2694.5286,276.3913,4.3359,230.1168,30,150,25,50,29,150);}
case 6: {SetPlayerSkin(playerid, 190);
SetSpawnInfo(playerid,0,190,-2694.5286,276.3913,4.3359,230.1168,30,150,25,50,29,150);}
case 7: {SetPlayerSkin(playerid, 195);
SetSpawnInfo(playerid,0,195,-2694.5286,276.3913,4.3359,230.1168,30,150,25,50,29,150);}
}
SetPlayerColor(playerid, color_NEGROS);
}
case 4:
{
GameTextForPlayer(playerid, "~g~Skin Changed!", 3000, 3);
switch(random(8))
{
case 0: {SetPlayerSkin(playerid, 21);
SetSpawnInfo(playerid,0,21,-2659.1301,275.6968,4.3359,79.7154,30,150,25,50,29,150);}
case 1: {SetPlayerSkin(playerid, 19);
SetSpawnInfo(playerid,0,19,-2659.1301,275.6968,4.3359,79.7154,30,150,25,50,29,150);}
case 2: {SetPlayerSkin(playerid, 183);
SetSpawnInfo(playerid,0,183,-2659.1301,275.6968,4.3359,79.7154,30,150,25,50,29,150);}
case 3: {SetPlayerSkin(playerid, 104);
SetSpawnInfo(playerid,0,104,-2659.1301,275.6968,4.3359,79.7154,30,150,25,50,29,150);}
case 5: {SetPlayerSkin(playerid, 22);
SetSpawnInfo(playerid,0,22,-2659.1301,275.6968,4.3359,79.7154,30,150,25,50,29,150);}
case 6: {SetPlayerSkin(playerid, 190);
SetSpawnInfo(playerid,0,190,-2659.1301,275.6968,4.3359,79.7154,30,150,25,50,29,150);}
case 7: {SetPlayerSkin(playerid, 195);
SetSpawnInfo(playerid,0,195,-2659.1301,275.6968,4.3359,79.7154,30,150,25,50,29,150);}
}
SetPlayerColor(playerid, color_NEGROS);
}
case 5:
{
GameTextForPlayer(playerid, "~g~Skin Changed!", 3000, 3);
switch(random(8))
{
case 0: {SetPlayerSkin(playerid, 21);
SetSpawnInfo(playerid,0,21,-2665.8315,237.6608,4.3359,96.0087,30,150,25,50,29,150);}
case 1: {SetPlayerSkin(playerid, 19);
SetSpawnInfo(playerid,0,19,-2665.8315,237.6608,4.3359,96.0087,30,150,25,50,29,150);}
case 2: {SetPlayerSkin(playerid, 183);
SetSpawnInfo(playerid,0,183,-2665.8315,237.6608,4.3359,96.0087,30,150,25,50,29,150);}
case 3: {SetPlayerSkin(playerid, 104);
SetSpawnInfo(playerid,0,104,-2665.8315,237.6608,4.3359,96.0087,30,150,25,50,29,150);}
case 4: {SetPlayerSkin(playerid, 28);
SetSpawnInfo(playerid,0,28,-2665.8315,237.6608,4.3359,96.0087,30,150,25,50,29,150);}
case 5: {SetPlayerSkin(playerid, 22);
SetSpawnInfo(playerid,0,22,-2665.8315,237.6608,4.3359,96.0087,30,150,25,50,29,150);}
case 6: {SetPlayerSkin(playerid, 190);
SetSpawnInfo(playerid,0,190,-2665.8315,237.6608,4.3359,96.0087,30,150,25,50,29,150);}
case 7: {SetPlayerSkin(playerid, 195);
SetSpawnInfo(playerid,0,195,-2665.8315,237.6608,4.3359,96.0087,30,150,25,50,29,150);}
}
SetPlayerColor(playerid, color_NEGROS);
}
}
}
public Team2(playerid)
{
switch(random(6)) //Civiles
{
case 0:
{
GameTextForPlayer(playerid, "~g~Skin Changed!", 3000, 3);
SetPlayerSkin(playerid, 2);
SetSpawnInfo(playerid,1,2,-1762.0461,960.5403,24.8828,171.4048,26,100,29,150,24,20);
SetPlayerColor(playerid, color_CIVILES);
}
case 1:
{
GameTextForPlayer(playerid, "~g~Skin Changed!", 3000, 3);
SetPlayerSkin(playerid, 2);
SetSpawnInfo(playerid,1,2,-1771.2639,961.1591,24.8828,167.9581,26,100,29,150,24,20);
SetPlayerColor(playerid, color_CIVILES);
}
case 2:
{
GameTextForPlayer(playerid, "~g~Skin Changed!", 3000, 3);
SetPlayerSkin(playerid, 2);
SetSpawnInfo(playerid,1,2,-1751.0995,961.6115,24.8828,176.7314,26,100,29,150,24,20);
SetPlayerColor(playerid, color_CIVILES);
}
case 3:
{
GameTextForPlayer(playerid, "~g~Skin Changed!", 3000, 3);
SetPlayerSkin(playerid, 2);
SetSpawnInfo(playerid,1,2,-1739.0233,961.1733,24.8828,171.0913,26,100,29,150,24,20);
SetPlayerColor(playerid, color_CIVILES);
}
case 4:
{
GameTextForPlayer(playerid, "~g~Skin Changed!", 3000, 3);
SetPlayerSkin(playerid, 2);
SetSpawnInfo(playerid,1,2,-1743.8237,946.1083,24.8828,15.3633,26,100,29,150,24,20);
SetPlayerColor(playerid, color_CIVILES);
}
case 5:
{
GameTextForPlayer(playerid, "~g~Skin Changed!", 3000, 3);
SetPlayerSkin(playerid, 2);
SetSpawnInfo(playerid,1,2,-1764.9819,945.7482,24.8828,31.9701,26,100,29,150,24,20);
SetPlayerColor(playerid, color_CIVILES);
}
}
}