Team restriction
#1

Well I want to make when player spawns as VIP, if he doesnt have 100+ score he will get killed and returned back to skin selection... Not working...

PHP код:
else if(GetPlayerTeam(playerid) == TEAM_VIP)
    {
        if(
GetPlayerScore(playerid) < 100) return SetPlayerHealth(playerid0);
        {
            
SendClientMessage(playeridCOLOR_BLUE"<!>You must have 50 score to join this team");
              
SetPlayerHealth(playerid,100);
              
SetPlayerArmour(playerid,100);
              
SetPlayerPos(playerid,-1391.1643,496.9996,18.2344);//VIP
              
SendClientMessage(playeridCOLOR_LIGHTBLUE"<!>You've made decision. You are now part of Team VIP. Use /teamhelp to see commands! Enjoy!");
        }
    } 
PHP код:
if(classid == 3)
  {
          
gTeam[playerid] = TEAM_VIP;
        
SetPlayerTeam(playerid,TEAM_VIP);
        
GameTextForPlayer(playerid,"~r~VIP",2000,3);
  } 
What happends is that player spawns without getting killed if he have less than 100 score... I want to make it, it will be killed if he doesnt have required score
Reply


Messages In This Thread
Team restriction - by Twinki1993 - 08.02.2012, 22:34
Re: Team restriction - by [ABK]Antonio - 08.02.2012, 23:40
Re: Team restriction - by Twinki1993 - 09.02.2012, 02:30
Re: Team restriction - by [ABK]Antonio - 09.02.2012, 03:28

Forum Jump:


Users browsing this thread: 1 Guest(s)