12.01.2015, 23:29
i created new teams at script but i want that teams only for members
how to add team special killers and special gurads only for members like :
Code:
#define SK 3 #define SG 4
Code:
AddPlayerClass(285,1838.0135,-3079.4434,6.0971,359.9966, 0, 0, 0, 0, 0, 0); AddPlayerClass(287,1838.0135,-3079.4434,6.0971,359.9966, 0, 0, 0, 0, 0, 0); AddPlayerClass(282,1838.0135,-3079.4434,6.0971,359.9966, 0, 0, 0, 0, 0, 0); AddPlayerClass(23,-171.6855,2704.5598,62.5543,90.8684,0,0,0,0,0,0); // T1 AddPlayerClass(124,-171.6855,2704.5598,62.5543,90.8684,0,0,0,0,0,0); // T1 AddPlayerClass(29,-171.6855,2704.5598,62.5543,90.8684,0,0,0,0,0,0); // T1 AddPlayerClass(164,1838.0135,-3079.4434,6.0971,359.9966, 0, 0, 0, 0, 0, 0);//special gurads AddPlayerClass(247,-171.6855,2704.5598,62.5543,90.8684,0,0,0,0,0,0); // special killers
Code:
public OnPlayerRequestClass(playerid, classid) { switch(classid) { case 0,1,2: { // TEAM STUFF GameTextForPlayer(playerid,"~b~Cops",1000,4); SetPlayerColor(playerid, C_COLOR); gTeam[playerid] = C1; SetPlayerPos(playerid,254.5903,1895.2537,20.3694); SetPlayerCameraPos(playerid,244.5754,1895.7119,19.8237); SetPlayerCameraLookAt(playerid,254.5903,1895.2537,20.3694); SetPlayerFacingAngle(playerid,90.6916); ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1,0,0,0,-1); //smooth dancing } case 3,4,5: { GameTextForPlayer(playerid,"~r~Terrorists",1000,4); SetPlayerColor(playerid, T_COLOR); gTeam[playerid] = T1; SetPlayerPos(playerid,-285.0289,2661.6575,62.6531); SetPlayerCameraPos(playerid,-279.0844,2660.7461,62.6090); SetPlayerCameraLookAt(playerid,-285.0289,2661.6575,62.6531); SetPlayerFacingAngle(playerid,271.5169); ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1,0,0,0,-1); //smooth dancing } case 6: { GameTextForPlayer(playerid,"~b~Special Gurads",1000,4); SetPlayerColor(playerid, C_COLOR); gTeam[playerid] = C1; SetPlayerPos(playerid,254.5903,1895.2537,20.3694); SetPlayerCameraPos(playerid,244.5754,1895.7119,19.8237); SetPlayerCameraLookAt(playerid,254.5903,1895.2537,20.3694); SetPlayerFacingAngle(playerid,90.6916); ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1,0,0,0,-1); //smooth dancing } case 7: { GameTextForPlayer(playerid,"~r~Special Killers",1000,4); SetPlayerColor(playerid, T_COLOR); gTeam[playerid] = T1; SetPlayerPos(playerid,-285.0289,2661.6575,62.6531); SetPlayerCameraPos(playerid,-279.0844,2660.7461,62.6090); SetPlayerCameraLookAt(playerid,-285.0289,2661.6575,62.6531); SetPlayerFacingAngle(playerid,271.5169); ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1,0,0,0,-1); //smooth dancing } }
Code:
if(PlayerInfo[playerid][pMember] == 0) return SendClientMessage(playerid, -1, "You're not a member apply at forum to be.");