Author Topic: I want to make a tournament server  (Read 3650 times)

0 Members and 1 Guest are viewing this topic.

Offline krakkster

  • Street Thug
  • *
  • Posts: 5
    • View Profile
I want to make a tournament server
« on: August 25, 2012, 10:55:04 am »
I actually want to know how to set the starting weapons of a player when he/she is spawned
I want to make it like : When I join my server I will get only tec90,katana , stubby shotgun
Please Help me soon

Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
Re: I want to make a tournament server
« Reply #1 on: August 26, 2012, 07:03:54 am »
It's been awhile since I scripted Pawn.. Here you go..
[pawn]public OnPlayerSpawn( playerid, classid )
{
   //Player has spawn so we disarm him first...
   SetPlayerWeapon( playerid, 0, 0 );
   //Now we give player weapons...
   SetPlayerWeapon( playerid, 10, 1 );/*Katana*/
   SetPlayerWeapon( playerid, 22, 9999 );/*Tec9*/
   SetPlayerWeapon( playerid, 21, 9999 );/*Stubby*/
   return 1;
}[/pawn]
I'm beginning to feel like a Lag God, Lag God

Offline krakkster

  • Street Thug
  • *
  • Posts: 5
    • View Profile
Fuzzy thanx
« Reply #2 on: August 27, 2012, 06:17:17 pm »
Man Indeed u Helped me alot I acctually did the same thing but u gave wepon ID's n I gave names By the way thnxx u R0ck

Offline krakkster

  • Street Thug
  • *
  • Posts: 5
    • View Profile
Re: I want to make a tournament server
« Reply #3 on: August 27, 2012, 06:55:48 pm »
i NEED your help how do i use these codes when I am inserting in mode.pwn they aren't working NEED HELP !!!!!! :)

Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
Re: I want to make a tournament server
« Reply #4 on: August 28, 2012, 04:33:19 am »
I depends on what code your using.. Search around and see topics which probably have the solution.
I'm beginning to feel like a Lag God, Lag God

Offline krakkster

  • Street Thug
  • *
  • Posts: 5
    • View Profile
Fuzzy
« Reply #5 on: August 28, 2012, 01:11:14 pm »
Just give me a Step by step tutorial on this matter