Author Topic: My Server Script Help  (Read 10729 times)

0 Members and 1 Guest are viewing this topic.

Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
My Server Script Help
« on: May 18, 2011, 06:24:05 am »
I will ask question I need help with here about my server.

1. How do I do welcome messages?

2. How do I edit commands with !

3. How do I edit a spawning character weapons and name?

I hope all this question could be answered.

[More to come]
I'm beginning to feel like a Lag God, Lag God

Offline asad3man

  • Made Man
  • ***
  • Posts: 121
  • A for Asad "Lion of Allah"
    • View Profile
    • Ultra DM server Website
Re: My Server Script Help
« Reply #1 on: May 18, 2011, 07:19:51 am »
i can tell u first 2 and 3rd is hard for me i m new and also finiding 3rd one

1.How to add welocme msg.. "OnPlayerconnect"

add this line
[pawn]GameTextForPlayer(playerid,"WELCOME MSG HERE",5000,5);[/pawn]

2.For commands using !
goto "OnPlayerText" dont goto OnPlayerCommands

and type some like this if u want !info commands u will type this

[pawn]else if (strcmp(cmd, "!info", true) == 0)
   {
   tmp = strtok(cmdtext, idx);
      if (!strlen(tmp)) {
               SendClientMessage(playerid, COLOR_ORANGE, "Pakistani Killers Mode Scripts");
            SendClientMessage(playerid, COLOR_ORANGE, "Also u can Join Clan goto ");
            SendClientMessage(playerid, COLOR_ORANGE, "http://pakistanikillersclan.net76.net");
      }
      return 1;
   }[/pawn]



as i told i dont know third one so sorry for that.......

StriKe

  • Guest
Re: My Server Script Help
« Reply #2 on: May 18, 2011, 07:22:45 am »
I think 3rd one should be how to add new characters and weapons?

http://famp.ru/wiki/AddPlayerClass

Offline asad3man

  • Made Man
  • ***
  • Posts: 121
  • A for Asad "Lion of Allah"
    • View Profile
    • Ultra DM server Website
Re: My Server Script Help
« Reply #3 on: May 18, 2011, 07:27:45 am »
yes strike u r right it is for u helped me now i can know it  thanx strike

StriKe

  • Guest
Re: My Server Script Help
« Reply #4 on: May 18, 2011, 07:33:37 am »
For the coordinates X,Y,Z. Go ingame and type /s to save the position of the class.

You can find the list of saved coordinates in a txt called "vc-mp_saved_coords" in your GTA VC  Directory.

Offline asad3man

  • Made Man
  • ***
  • Posts: 121
  • A for Asad "Lion of Allah"
    • View Profile
    • Ultra DM server Website
Re: My Server Script Help
« Reply #5 on: May 18, 2011, 07:39:12 am »
a problem occured when i put it to pawn then starts the game i chnaged th eplayer skins id then it is giving construction worker 2 times

Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
Re: My Server Script Help
« Reply #6 on: May 18, 2011, 03:44:29 pm »
Thanks asad3man for no.1 but I don't understand your no.2 answer. Could you explain your answer? No.3, GUPS gives the player with weapon. I wanna know how to remove those and how in I actually change the name of the character, not add another character.
I'm beginning to feel like a Lag God, Lag God

Offline asad3man

  • Made Man
  • ***
  • Posts: 121
  • A for Asad "Lion of Allah"
    • View Profile
    • Ultra DM server Website
Re: My Server Script Help
« Reply #7 on: May 18, 2011, 04:08:50 pm »
in the 3rd n#
i gave example of !info command
u can add !admin commands !forum commands
just change where it is writen !info
and change the next line which s written "Pakistani Killers"
if u write "Hello i am admin" then it says Hello i am admin instead if Pakistani killer if u write !ADMIN

Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
Re: My Server Script Help
« Reply #8 on: May 18, 2011, 04:22:55 pm »
Ok I understand. On the other side, I was actually meaning how to change the ! to something like /c. Anyway that really help too.
I'm beginning to feel like a Lag God, Lag God

Offline asad3man

  • Made Man
  • ***
  • Posts: 121
  • A for Asad "Lion of Allah"
    • View Profile
    • Ultra DM server Website
Re: My Server Script Help
« Reply #9 on: May 18, 2011, 04:25:52 pm »
if u want to /c commands then u can do it goto OnPalyerCommand and just type info on box not /c info

NOTE :- That is an only Example

Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
Re: My Server Script Help
« Reply #10 on: May 18, 2011, 04:29:41 pm »
HOW?
I'm beginning to feel like a Lag God, Lag God

Offline asad3man

  • Made Man
  • ***
  • Posts: 121
  • A for Asad "Lion of Allah"
    • View Profile
    • Ultra DM server Website
Re: My Server Script Help
« Reply #11 on: May 18, 2011, 04:34:57 pm »
in pawno goto this place OnPlayerCommandText and then write like this but wite only command like eg info admin  etc :X

Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
Re: My Server Script Help
« Reply #12 on: May 18, 2011, 05:11:22 pm »
could you show me the pawn?
I'm beginning to feel like a Lag God, Lag God

Offline asad3man

  • Made Man
  • ***
  • Posts: 121
  • A for Asad "Lion of Allah"
    • View Profile
    • Ultra DM server Website
Re: My Server Script Help
« Reply #13 on: May 18, 2011, 05:45:00 pm »
no
i am too lazy

Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
Re: My Server Script Help
« Reply #14 on: May 18, 2011, 06:51:29 pm »
Asad,i understand what you mean just the box part. Could you explain that to me?
I'm beginning to feel like a Lag God, Lag God