Question?
#6

Hard time understanding, lol.


Today I'm too lazy to explain, so here:


pawn Код:
new count=-1;
public OnPlayerText(playerid, text[])
{
    new message[180],playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername, sizeof(playername));
    count+=1;
    if(count==0)
    {
        format(message,sizeof(message),"%s says: %s", playername, text);
        SendClientMessageToAll(yourcolor, message);
        return 0;
    }
    if(count==1)
    {
        format(message,sizeof(message),"%s then says: %s", playername, text);
        SendClientMessageToAll(yourcolor, message);
        return 0;
    }
    if(count==2)
    {
        format(message,sizeof(message),"%s chit chats: %s", playername, text);
        SendClientMessageToAll(yourcolor, message);
        return 0;
    }
    if(count==3)
    {
        format(message,sizeof(message),"%s says while pukeing: %s", playername, text);
        SendClientMessageToAll(yourcolor, message);
        return 0;
    }
    if(count==4)
    {
        format(message,sizeof(message),"%s responds: %s", playername, text);
        SendClientMessageToAll(yourcolor, message);
        return 0;
    }
    if(count==5)
    {
        format(message,sizeof(message),"%s wonders: %s", playername, text);
        SendClientMessageToAll(yourcolor, message);
        count=-1;
        return 0;
    }
    return 1;
}
It could be done more carefully, i did it like simple.
Reply


Messages In This Thread
Question? - by seanny - 25.01.2012, 15:57
Re: Question? - by Snowman12 - 25.01.2012, 16:02
Re: Question? - by [XST]O_x - 25.01.2012, 16:04
Re: Question? - by seanny - 25.01.2012, 16:10
Re: Question? - by milanosie - 25.01.2012, 18:03
Re: Question? - by Unte99 - 25.01.2012, 19:08

Forum Jump:


Users browsing this thread: 1 Guest(s)