SendClientMessage only once
#4

Quote:
Originally Posted by Kitten
Посмотреть сообщение
pawn Код:
new Herro = 0;
forward BukLao ( ) ;
public OnPlayerSpawn(playerid) {
     Herro = 1;
     if(Herro == 1 ) {
         SendClientMessage(playerid, COLOR_YELLOW, "You have received a phone from SoftBank type /myphonenumber to check your number!");
     }
     SetTimer("BukLao",1000,false);
     return 1;
}
public BukLao ( ) {
    Herro = 0;
}

EDIT: Fixed code
It still sends the message to players when they relog but what I ment is it will send to them on a first spawn then it wont anymore (I bet u know that anyways ^^.)
Reply


Messages In This Thread
SendClientMessage only once - by Tachibana - 24.06.2011, 17:43
Re: SendClientMessage only once - by undeR. - 24.06.2011, 17:47
Re: SendClientMessage only once - by Kitten - 24.06.2011, 17:48
Re: SendClientMessage only once - by Tachibana - 24.06.2011, 17:56
Re: SendClientMessage only once - by =WoR=Varth - 24.06.2011, 18:00
Re: SendClientMessage only once - by Tachibana - 24.06.2011, 18:06

Forum Jump:


Users browsing this thread: 1 Guest(s)