Help Me Please
#10

Quote:
Originally Posted by PrawkC
Посмотреть сообщение
sigh

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    SendDeathMessage(killerid,reason,playerid);
    SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
    if(GetPlayerTeam(killerid) == 1)
    {
        RussiaScore++; //Sets team1score
        new newtext[41];
        RussiaScore = GetPlayerScore(playerid);
        USAScore = GetPlayerScore(playerid);
        format(newtext, sizeof(newtext), "USA's Score: %d", RussiaScore);
        TextDrawSetString(Text:Textdraw0, newtext);
    }
    if(GetPlayerTeam(killerid) == 2)
    {
        USAScore++; //Sets team2score
        new newtext[41];
        USAScore = GetPlayerScore(playerid);
        RussiaScore = GetPlayerScore(playerid);
        format(newtext, sizeof(newtext), "Russia's Score: %d", USAScore);
        TextDrawSetString(Text:Textdraw1, newtext);
    }
    if(RussiaScore == 5 || USAScore == 5)
    {
        SendRconCommand("gmx"); //Restarts Server
    }
    ShowHideTD(Textdraw0);
    ShowHideTD(Textdraw1);
    return 1;
}

stock ShowHideTD(Text:td)
{
    TextDrawHideForAll(td);
    TextDrawShowForAll(td);
}
Thanks :P
Reply


Messages In This Thread
Help Me Please - by HayZatic - 11.07.2011, 03:05
Re: Help Me Please - by PrawkC - 11.07.2011, 03:15
Re: Help Me Please - by HayZatic - 11.07.2011, 03:18
Re: Help Me Please - by Scenario - 11.07.2011, 03:25
Re: Help Me Please - by PrawkC - 11.07.2011, 03:26
Re: Help Me Please - by HayZatic - 11.07.2011, 03:30
Re: Help Me Please - by PrawkC - 11.07.2011, 03:41
Re: Help Me Please - by HayZatic - 11.07.2011, 03:50
Re: Help Me Please - by PrawkC - 11.07.2011, 03:52
Re: Help Me Please - by HayZatic - 11.07.2011, 03:53

Forum Jump:


Users browsing this thread: 4 Guest(s)