if vip spawn with armour.
#1

why does this not work every person spawns with full armour...
Код:
   	if(Info[playerid][Vip] < 1)
   	{
   	    SetPlayerArmour(playerid, 25.0);
	}
	if(Info[playerid][Vip] < 2)
   	{
   	    SetPlayerArmour(playerid, 50.0);
	}
	if(Info[playerid][Vip] < 3)
   	{
   	    SetPlayerArmour(playerid, 75.0);
	}
	if(Info[playerid][Vip] < 4)
   	{
   	    SetPlayerArmour(playerid, 100.0);
	}
Reply
#2

pawn Код:
if(Info[playerid][Vip] == 1)
    {
        SetPlayerArmour(playerid, 25.0);
    }
    if(Info[playerid][Vip] == 2)
    {
        SetPlayerArmour(playerid, 50.0);
    }
    if(Info[playerid][Vip] == 3)
    {
        SetPlayerArmour(playerid, 75.0);
    }
    if(Info[playerid][Vip] == 4)
    {
        SetPlayerArmour(playerid, 100.0);
    }
Might work. I don't actually know what you want or how you want it.
Reply
#3

no u don't understand a original player spawns with armour aswell...
Reply
#4

pawn Код:
if(Info[playerid][Vip] == 1)
{
    SetPlayerArmour(playerid, 25.0);
}
else if(Info[playerid][Vip] == 2)
{
    SetPlayerArmour(playerid, 50.0);
}
else if(Info[playerid][Vip] == 3)
{
    SetPlayerArmour(playerid, 75.0);
}
else if(Info[playerid][Vip] == 4)
{
    SetPlayerArmour(playerid, 100.0);
}
Try this then!
Reply
#5

pawn Код:
public OnPlayerSpawn (PlayerID)
{
if(Info[playerid][Vip] == 1)    {        SetPlayerArmour(playerid, 25.0);    }  
if(Info[playerid][Vip] == 2)    {        SetPlayerArmour(playerid, 50.0);    }    
if(Info[playerid][Vip] == 3)    {        SetPlayerArmour(playerid, 75.0);    }    
if(Info[playerid][Vip] == 4)    {        SetPlayerArmour(playerid, 100.0);    }

return 1;
}
Does this works?
Reply
#6

Quote:
Originally Posted by -Shifty-
Посмотреть сообщение
pawn Код:
public OnPlayerSpawn (PlayerID)
{
if(Info[playerid][Vip] == 1)    {        SetPlayerArmour(playerid, 25.0);    }  
if(Info[playerid][Vip] == 2)    {        SetPlayerArmour(playerid, 50.0);    }    
if(Info[playerid][Vip] == 3)    {        SetPlayerArmour(playerid, 75.0);    }    
if(Info[playerid][Vip] == 4)    {        SetPlayerArmour(playerid, 100.0);    }

return 1;
}
Does this works?
That's just the same code I posted, I am sure he's using OnPlayerSpawn.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)