14.04.2014, 16:32
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_2
Connect_3
Connect_4
Connect_5
In this order must be created in OnGameModeInit