• Welcome to Vice City Multiplayer.
 

Add welcome message.

Started by theweirdgeek, February 22, 2010, 06:00:00 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

theweirdgeek

I'm new to all this scripting, And need your help...

I would like to add the following script which displays a message on user entry...

public OnPlayerConnect(playerid){
   SendClientMessage(playerid,COLOR_GRAY,"Welcome to my server.");
   return 1;
}  


Where abouts in my pawn script would i insert the script above?

Many thanks,
Jake

thijn

Doesn't matter where u put it, aslong as its not in any other callback.


theweirdgeek

I inserted it in the script in:

//------------------------------------------------------------------------------------------------------

public OnPlayerConnect(playerid){
   SendClientMessage(playerid,COLOR_GRAY,"Welcome to {Jakes server} , Enjoy yourself! , This server is hosted at buzzsocial.co.uk");
   return 1;
}

//------------------------------------------------------------------------------------------------------

Is this ok? Anyways after saving it to the server no changes have taken place and a welcome message is not showing?

Thanks,
Jake

Ettans

Are you sure there isn't a second OnPlayerConnect callback in your gamemode? Also, don't forget to re-compile. ;)