19.07.2015, 02:02
How Do I Make This Sends Random Saved MOTDs?
It only sends me the MOTD of the first gang.
NOTE I will convert Dini to MySQL later just tell me about the motd thing.
pawn Код:
for(new i = 0; i < MAX_GANGS; i++)
{
if(dini_Exists(gFileId(i)))
{
if(strval(dini_Get(gFileId(i),"GangMOTD")) != -1)
{
new motd[128];
format(motd,sizeof(motd),"MOTD: %s",dini_Get(gFileId(i),"GangMOTD"));
SendClientMessageToAll(0xFFB300FF, motd);
break;
}
}
}
NOTE I will convert Dini to MySQL later just tell me about the motd thing.