How can i??
#1

==> I did this.. But when i spawn and set my score to 0 then my armour not gone? What is this.?? I want that i write below. Can any one help me??

pawn Код:
public OnPlayerSpawn(playerid)
{
    {
    if(GetPlayerScore(playerid) >= 0 && GetPlayerScore(playerid) < 150)// score is greater than 0 and less than 150 it rookie ... same below
    SetPlayerHealth(playerid, 70.0);
    }

    {
    if(GetPlayerScore(playerid) >= 150 && GetPlayerScore(playerid) < 300)
    SetPlayerHealth(playerid, 80.0);
    }

    {
    if(GetPlayerScore(playerid) >= 300 && GetPlayerScore(playerid) < 450)
    SetPlayerHealth(playerid, 95.0);
    }

    {
    if(GetPlayerScore(playerid) >= 300 && GetPlayerScore(playerid) < 450)
    SetPlayerHealth(playerid, 100.0);
    SetPlayerArmour(playerid, 10.0);
    }

    {
    if(GetPlayerScore(playerid) >= 450 && GetPlayerScore(playerid) < 600)
    SetPlayerHealth(playerid, 100.0);
    SetPlayerArmour(playerid, 25.0);
    }

    {
    if(GetPlayerScore(playerid) >= 600 && GetPlayerScore(playerid) < 800)
    SetPlayerHealth(playerid, 100.0);
    SetPlayerArmour(playerid, 40.0);
    }

    {
    if(GetPlayerScore(playerid) >= 800 && GetPlayerScore(playerid) < 1200)
    SetPlayerHealth(playerid, 100.0);
    SetPlayerArmour(playerid, 55.0);
    }

    {
    if(GetPlayerScore(playerid) >= 1200 && GetPlayerScore(playerid) < 2000)
    SetPlayerHealth(playerid, 100.0);
    SetPlayerArmour(playerid, 70.0);
    }

    {
    if(GetPlayerScore(playerid) >= 2000 && GetPlayerScore(playerid) < 3500)
    SetPlayerHealth(playerid, 100.0);
    SetPlayerArmour(playerid, 85.0);
    }

    {
    if(GetPlayerScore(playerid) >= 3500)
    SetPlayerHealth(playerid, 100.0);
    SetPlayerArmour(playerid, 99.0);
    }
Reply
#2

Add this ?

pawn Код:
SetPlayerArmour(playerid,0.0);

One more thing bro :

pawn Код:
public OnPlayerSpawn(playerid)
{//this is start of OnPlayerSpawn
    {//but this ?? no purpose of this bracket .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)