Connect Disconnect Textdraws
#3

pawn Код:
new
    Text:ConnectTD[CONNECT_MESSAGES],
    Kill_List_Str[CONNECT_MESSAGES][50]
;

SendConnectMessage(const message[])
{
    for(new idx = 1; idx < CONNECT_MESSAGES; idx++)
        Kill_List_Str[idx - 1] = Kill_List_Str[idx];

    strcat((Kill_List_Str[CONNECT_MESSAGES - 1][0]='\0', Kill_List_Str[CONNECT_MESSAGES - 1]),message,sizeof(Kill_List_Str[]));

    for(new idx = 0; idx < CONNECT_MESSAGES; idx++)
        if(Kill_List_Str[idx][0] != '\0')
        {
            TextDrawSetString(ConnectTD[idx], Kill_List_Str[idx]);
            TextDrawShowForAll(ConnectTD[idx]);
        }
}
Connect_1
Connect_2
Connect_3
Connect_4
Connect_5

In this order must be created in OnGameModeInit
Reply


Messages In This Thread
Connect Disconnect Textdraws - by iFarbod - 14.04.2014, 12:36
Re: Connect Disconnect Textdraws - by iFarbod - 14.04.2014, 12:55
Re: Connect Disconnect Textdraws - by Jefff - 14.04.2014, 16:32

Forum Jump:


Users browsing this thread: 1 Guest(s)