Author Topic: Script request (Please read)  (Read 2737 times)

0 Members and 1 Guest are viewing this topic.

Offline theweirdgeek

  • Street Thug
  • *
  • Posts: 17
    • View Profile
Script request (Please read)
« on: February 21, 2010, 10:35:20 pm »
How can i get my server to welcome visitors with a message such as,

Welcome to my server.

Thanks,
Jake

Offline Boss

  • VC:MP Beta Tester (inactive)
  • Made Man
  • *
  • Posts: 229
  • Boss
    • View Profile
    • TDH Clan Site
Re: Script request (Please read)
« Reply #1 on: February 21, 2010, 11:51:50 pm »
Code: [Select]
public OnPlayerConnect(playerid){
SendClientMessage(playerid,COLOR_GRAY,"Welcome to my server.");
return 1;
}

Offline theweirdgeek

  • Street Thug
  • *
  • Posts: 17
    • View Profile
Re: Script request (Please read)
« Reply #2 on: February 22, 2010, 12:36:08 am »
I'm new to all this coding, Do you know where abouts i insert this script to get it to work?

Thanks,
Jake

Offline Boss

  • VC:MP Beta Tester (inactive)
  • Made Man
  • *
  • Posts: 229
  • Boss
    • View Profile
    • TDH Clan Site
Re: Script request (Please read)
« Reply #3 on: February 22, 2010, 12:45:57 am »
You put this in your .pwn script. Refer to the following resources for a further scripting help:
http://www.compuphase.com/pawn/pawn.htm#DOWNLOAD_DOCS
http://wiki.sa-mp.com/wiki/Category:Scripting_Documentation
http://tdhclan.ru/wiki/index.php/Scripting

If none of these help - nothing can.