22.02.2012, 21:00
Quote:
the problem is when i try to move the
Код:
if(PlayerInfo[playerid][pLeader] == 1) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Police Department"; ChosenSkin[para1] = 282; SetPlayerSkin(para1, 282); } else if(PlayerInfo[playerid][pLeader] == 2) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "FBI"; ChosenSkin[para1] = 24; SetPlayerSkin(para1, 24); } else if(PlayerInfo[playerid][pLeader] == 3) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "ARM"; ChosenSkin[para1] = 285; SetPlayerSkin(para1, 285); } else if(PlayerInfo[playerid][pLeader] == 4) { PlayerInfo[para1][pTeam] = 1; gTeam[para1] = 1; ftext = "Ambulance"; ChosenSkin[para1] = 276; SetPlayerSkin(para1, 276); } else if(PlayerInfo[playerid][pLeader] == 5) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "La Cosa Nostra"; ChosenSkin[para1] = 125; SetPlayerSkin(para1, 125); } else if(PlayerInfo[playerid][pLeader] == 6) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Yakuza"; ChosenSkin[para1] = 121; SetPlayerSkin(para1, 121); } else if(PlayerInfo[playerid][pLeader] == 7) { return 1; } else if(PlayerInfo[playerid][pLeader] == 8) { PlayerInfo[para1][pTeam] = 10; gTeam[para1] = 12; ftext = "Hitman Agency"; ChosenSkin[para1] = 258; SetPlayerSkin(para1, 258); } else if(PlayerInfo[playerid][pLeader] == 9) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Kanal 5 Studio"; ChosenSkin[para1] = 1; SetPlayerSkin(para1, 1); } else if(PlayerInfo[playerid][pLeader] == 10) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Taxi Companijata"; ChosenSkin[para1] = 210; SetPlayerSkin(para1, 210); } else if(PlayerInfo[playerid][pLeader] == 12) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Los Santos Gang"; ChosenSkin[para1] = 175; SetPlayerSkin(para1, 175); } else if(PlayerInfo[playerid][pLeader] == 13) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Groove Street Gang"; ChosenSkin[para1] = 105; SetPlayerSkin(para1, 105); } else if(PlayerInfo[playerid][pLeader] == 11) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "School Instructors"; ChosenSkin[para1] = 59; SetPlayerSkin(para1, 59); } else { return 1; } How can i make it when a player sends an invitation the other player needs to first accept te invitation then join on this script the player automaticaly joins the team even if he picks No |