Stats in textdraws - targetid help
#20

pawn Код:
//top of the script
new PlayerText:StatsTacke[MAX_PLAYERS];
new PlayerText:StatsLevel[MAX_PLAYERS];
new PlayerText:StatsRespekti[MAX_PLAYERS];
new PlayerText:StatsDoRespekta[MAX_PLAYERS];
new PlayerText:StatsNovac[MAX_PLAYERS];
new PlayerText:StatsBanka[MAX_PLAYERS];
new PlayerText:StatsOrg[MAX_PLAYERS];

//OnPlayerCommandText
if(!strcmp(cmd, "/account", true,8))
{
    if(!IsPlayerConnected(playerid))return 1;
    if(cmd[8]!=' ')SendClientMessage(playerid, COLOR_DGOLD,"KORISTI: /account [profile/password]"),return 1;
    new str[20];
    strcat(str,cmd[9]);
    if(!strlen(str))SendClientMessage(playerid, COLOR_DGOLD,"KORISTI: /account [profile/password]"),return 1;
    if(strcmp(str,"profile",true) == 0)
    {
        PlayerTextDrawSetString(playerid,StatsTacke[playerid],"---------------------");
        PlayerTextDrawShow(playerid, StatsTacke[playerid]);

        format(string,sizeof string,"LEVEL: %d",PlayerInfo[playerid][pLevel]);
        PlayerTextDrawSetString(StatsLevel[playerid],string);
        PlayerTextDrawShow(playerid, StatsLevel[playerid]);

        new nxtlevel = PlayerInfo[playerid][pLevel]+1;
        new expamount = nxtlevel*levelexp;
        format(string,sizeof string,"RESPEKTI: %d/%d",PlayerInfo[playerid][pExp], expamount);
        PlayerTextDrawSetString(StatsRespekti[playerid],string);
        PlayerTextDrawShow(playerid, StatsRespekti[playerid]);

        format(string,sizeof string,"DO RESPEKTA: %d/60", PlayerInfo[playerid][pMinutePayDay]);
        PlayerTextDrawSetString(StatsDoRespekta[playerid],string);
        PlayerTextDrawShow(playerid, StatsDoRespekta[playerid]);

        format(string,sizeof string,"NOVAC: %d$", PlayerInfo[playerid][pCash]);
        PlayerTextDrawSetString(StatsNovac[playerid],string);
        PlayerTextDrawShow(playerid, StatsNovac[playerid]);

        format(string,sizeof string,"BANKA: %d$", PlayerInfo[playerid][pAccount]);
        PlayerTextDrawSetString(StatsBanka[playerid],string);
        PlayerTextDrawShow(playerid, StatsBanka[playerid]);
       
        format(string,sizeof string,"ORG: %d", PlayerInfo[playerid][pMember]);
        PlayerTextDrawSetString(StatsOrg[playerid],string);
        PlayerTextDrawShow(playerid, StatsOrg[playerid]);
    }
    return 1;
}
Reply


Messages In This Thread
Stats in textdraws - targetid help - by Saddin - 27.07.2012, 21:16
Re: Stats in textdraws - targetid help - by Roko_foko - 27.07.2012, 21:24
Re: Stats in textdraws - targetid help - by Saddin - 27.07.2012, 21:26
Re: Stats in textdraws - targetid help - by Roko_foko - 27.07.2012, 21:31
Re: Stats in textdraws - targetid help - by Saddin - 27.07.2012, 21:37
Re: Stats in textdraws - targetid help - by Marlon_Lorran - 27.07.2012, 21:37
Re: Stats in textdraws - targetid help - by The__ - 27.07.2012, 21:38
Re: Stats in textdraws - targetid help - by Saddin - 27.07.2012, 22:04
Re: Stats in textdraws - targetid help - by Saddin - 28.07.2012, 07:39
Re: Stats in textdraws - targetid help - by Roko_foko - 28.07.2012, 08:11
Re: Stats in textdraws - targetid help - by Saddin - 28.07.2012, 08:14
Re: Stats in textdraws - targetid help - by nGen.SoNNy - 28.07.2012, 08:21
Re: Stats in textdraws - targetid help - by Saddin - 28.07.2012, 11:08
Re: Stats in textdraws - targetid help - by nGen.SoNNy - 28.07.2012, 11:52
Re: Stats in textdraws - targetid help - by Saddin - 28.07.2012, 12:05
Re: Stats in textdraws - targetid help - by Roko_foko - 28.07.2012, 12:57
Re: Stats in textdraws - targetid help - by Saddin - 28.07.2012, 13:01
Re: Stats in textdraws - targetid help - by Roko_foko - 28.07.2012, 13:14
Re: Stats in textdraws - targetid help - by Saddin - 28.07.2012, 13:19
Re: Stats in textdraws - targetid help - by Roko_foko - 28.07.2012, 16:11
Re: Stats in textdraws - targetid help - by Saddin - 28.07.2012, 16:15
Re: Stats in textdraws - targetid help - by Roko_foko - 28.07.2012, 16:25
Re: Stats in textdraws - targetid help - by Saddin - 28.07.2012, 16:29
Re: Stats in textdraws - targetid help - by Saddin - 28.07.2012, 16:37
Re: Stats in textdraws - targetid help - by Roko_foko - 28.07.2012, 16:40
Re: Stats in textdraws - targetid help - by Saddin - 28.07.2012, 16:42
Re: Stats in textdraws - targetid help - by Saddin - 28.07.2012, 16:58

Forum Jump:


Users browsing this thread: 6 Guest(s)