Need help! To add player classes and more.
#5

For the AddPlayerClass's

1. Open up pawno
2. Open your game mode..
3. Copy the AddPlayerClass's u got here.
4.Click on "Edit" And then on "Search" or CTRL+F
5. Enter this public OnGameModeInit()
6. Under public OnGameModeInit()
Add the player classes
That looks like this then
pawn Код:
OnGameModeInit()
{

AddPlayerClass(180,-468.3654,2208.0317,46.4776,115.0000,4,1,0,0,0,0);
    AddPlayerClass(217,-468.3654,2208.0317,46.4776,115.0000,4,1,1,1,0,0);
    AddPlayerClass(211,-467.6280,2208.3828,46.4052,115.0000,4,1,0,0,0,0);
    AddPlayerClass( 28,-468.3654,2208.0317,46.4776,115.0000,4,1,1,1,0,0);
        AddPlayerClass(  0,-469.4590,2207.5110,46.5850,115.0000,4,1,0,0,0,0);
        AddPlayerClass(202,-470.4734,2207.0278,46.6846,115.0000,4,1,0,0,0,0);
    AddPlayerClass(137,-467.6280,2208.3828,46.4052,115.0000,0,0,0,0,0,0);
    AddPlayerClass( 21,-468.3654,2208.0317,46.4776,115.0000,4,1,1,1,0,0);
    AddPlayerClass( 22,-469.4590,2207.5110,46.5850,115.0000,4,1,0,0,0,0);
    AddPlayerClass( 19,-467.6280,2208.3828,46.4052,115.0000,4,1,1,1,0,0);
    AddPlayerClass(181,-468.3654,2208.0317,46.4776,115.0000,4,1,41,50,0,0);
    AddPlayerClass(242,-469.4590,2207.5110,46.5850,115.0000,4,1,2,1,0,0);
    AddPlayerClass( 29,-470.4734,2207.0278,46.6846,115.0000,4,1,0,0,0,0);
    AddPlayerClass( 61,-467.6280,2208.3828,46.4052,115.0000,0,0,0,0,0,0);
    AddPlayerClass(167,-468.3654,2208.0317,46.4776,115.0000,4,1,0,0,0,0);
    AddPlayerClass(179,-469.4590,2207.5110,46.5850,115.0000,4,1,6,1,0,0);
    AddPlayerClass(204,-470.4734,2207.0278,46.6846,115.0000,4,1,8,1,0,0);
    AddPlayerClass( 80,-467.6280,2208.3828,46.4052,115.0000,4,1,0,0,0,0);
    AddPlayerClass( 81,-467.6280,2208.3828,46.4052,115.0000,4,1,0,0,0,0);
    AddPlayerClass( 23,-468.3654,2208.0317,46.4776,115.0000,4,1,0,0,0,0);
    AddPlayerClass( 99,-469.4590,2207.5110,46.5850,115.0000,0,0,0,0,0,0);
    AddPlayerClass(161,-470.4734,2207.0278,46.6846,115.0000,6,1,0,0,0,0);
    AddPlayerClass( 33,-467.6280,2208.3828,46.4052,115.0000,4,1,0,0,0,0);
    AddPlayerClass(163,-468.3654,2208.0317,46.4776,115.0000,4,1,0,0,0,0);
    AddPlayerClass(164,-469.4590,2207.5110,46.5850,115.0000,4,1,0,0,0,0);
    AddPlayerClass(165,-468.3654,2208.0317,46.4776,115.0000,4,1,0,0,0,0);
    AddPlayerClass(166,-468.3654,2208.0317,46.4776,115.0000,4,1,0,0,0,0);
    AddPlayerClass(277,-470.4734,2207.0278,46.6846,115.0000,4,1,0,0,0,0);
    AddPlayerClass(280,-467.6280,2208.3828,46.4052,115.0000,4,1,3,1,0,0);
    AddPlayerClass(282,-468.3654,2208.0317,46.4776,115.0000,4,1,3,1,0,0);
    AddPlayerClass(283,-469.4590,2207.5110,46.5850,115.0000,4,1,3,1,0,0);
    AddPlayerClass(284,-470.4734,2207.0278,46.6846,115.0000,4,1,3,1,0,0);
    AddPlayerClass(285,-467.6280,2208.3828,46.4052,115.0000,4,1,3,1,0,0);
    AddPlayerClass(287,-468.3654,2208.0317,46.4776,115.0000,4,1,3,1,0,0);
    AddPlayerClass(100,-469.4590,2207.5110,46.5850,115.0000,4,1,0,0,0,0);
    AddPlayerClass(106,-470.4734,2207.0278,46.6846,115.0000,4,1,1,1,0,0);
    AddPlayerClass( 93,-467.6280,2208.3828,46.4052,115.0000,4,1,0,0,0,0);
    AddPlayerClass(233,-468.3654,2208.0317,46.4776,115.0000,4,1,0,0,0,0);
    AddPlayerClass( 41,-469.4590,2207.5110,46.5850,115.0000,4,1,0,0,0,0);
        AddPlayerClass(178,-470.4734,2207.0278,46.6846,115.0000,4,1,11,1,0,0);
    AddPlayerClass(246,-467.6280,2208.3828,46.4052,115.0000,4,1,11,1,0,0);
        AddPlayerClass( 85,-469.4590,2207.5110,46.5850,115.0000,4,1,11,1,0,0);
        AddPlayerClass(192,-468.3654,2208.0317,46.4776,115.0000,4,1,0,0,0,0);
        AddPlayerClass(193,-469.4590,2207.5110,46.5850,115.0000,4,1,0,0,0,0);
    AddPlayerClass(286,-467.6280,2208.3828,46.4052,115.0000,4,1,0,0,0,0);
    AddPlayerClass( 18,-468.3654,2208.0317,46.4776,115.0000,4,1,0,0,0,0);
        AddPlayerClass( 26,-470.4734,2207.0278,46.6846,115.0000,4,1,0,0,0,0);
    AddPlayerClass(141,-467.6280,2208.3828,46.4052,115.0000,4,1,0,0,0,0);
    AddPlayerClass(189,-468.3654,2208.0317,46.4776,115.0000,4,1,0,0,0,0);
    AddPlayerClass( 70,-469.4590,2207.5110,46.5850,115.0000,4,1,0,0,0,0);
    AddPlayerClass(213,-467.6280,2208.3828,46.4052,115.0000,4,1,1,1,0,0);
    AddPlayerClass(206,-468.3654,2208.0317,46.4776,115.0000,4,1,0,0,0,0);
    AddPlayerClass(228,-469.4590,2207.5110,46.5850,115.0000,4,1,0,0,0,0);
    AddPlayerClass(240,-470.4734,2207.0278,46.6846,115.0000,4,1,0,0,0,0);
    AddPlayerClass(272,-467.6280,2208.3828,46.4052,115.0000,4,1,0,0,0,0);
    AddPlayerClass(269,-468.3654,2208.0317,46.4776,115.0000,4,1,0,0,0,0);
            return 1;
}
6. Compile and your done!

Also if you mean when connecting that it sends a Message or a Screen message?

For a normal message

Search for this : "public OnPlayerConnect(playerid)"
Under it Add this :

SendClientMessage(playerid,YOURCOLOR,"Welcome to Stunt Revolution!");
SendClientMessage(playerid,YOURCOLOR,"Start Of By Typing /Help in the Chat!");

THat looks like..

pawn Код:
public OnPlayerConnect(playerid)
{
   SendClientMessage(playerid,blue,"Welcome to Stunt Revolution!");
   SendClientMessage(playerid,YOURCOLOR,"Start Of By Typing /Help in the Chat!");
   return 1;
}
For a on screen message:

1. Search for public OnPlayerConnect(playerid)
{

2. Under it add GameTextForPlayer(playerid,"Welcome to Stunt Revolution!",10000,4);

Explaination :

GameTextForPlayer(playerid,"Text!",Time,Style);


GameTextForPlayer Brings up a on screen message.
playerid is the player who connects..
Text > the text you want to show to the player who connects
Time > The time to how long to show it up <In milliseconds>
Style > The style you want to choose, i prefer 5 but you can try it out! it ranges from 0-6.

If you need help just ask
Reply


Messages In This Thread
Need help! To add player classes and more. - by Kitten_Blind - 21.11.2010, 16:55
Re: Need help! To add player classes and more. - by Victor - 21.11.2010, 17:03
Re: Need help! To add player classes and more. - by Backwardsman97 - 21.11.2010, 17:04
Re: Need help! To add player classes and more. - by Burridge - 21.11.2010, 17:06
Re: Need help! To add player classes and more. - by [SU]Balli - 21.11.2010, 17:08
Re: Need help! To add player classes and more. - by Kitten_Blind - 21.11.2010, 18:18
AW: Need help! To add player classes and more. - by [SU]Balli - 22.11.2010, 11:14
Re: Need help! To add player classes and more. - by Kitten_Blind - 22.11.2010, 14:06
AW: Need help! To add player classes and more. - by [SU]Balli - 22.11.2010, 15:06
Re: Need help! To add player classes and more. - by Kitten_Blind - 22.11.2010, 15:23
AW: Need help! To add player classes and more. - by [SU]Balli - 22.11.2010, 16:02
Re: Need help! To add player classes and more. - by Kitten_Blind - 22.11.2010, 16:06
Re: Need help! To add player classes and more. - by TheXIII - 22.11.2010, 16:10
Re: Need help! To add player classes and more. - by Kitten_Blind - 22.11.2010, 16:13
Re: Need help! To add player classes and more. - by -Rebel Son- - 22.11.2010, 16:19
Re: Need help! To add player classes and more. - by TheXIII - 22.11.2010, 16:19
Re: Need help! To add player classes and more. - by -Rebel Son- - 22.11.2010, 16:22
Re: Need help! To add player classes and more. - by Kitten_Blind - 22.11.2010, 16:29
Re: Need help! To add player classes and more. - by Kitten_Blind - 22.11.2010, 18:27
Re: Need help! To add player classes and more. - by TheXIII - 22.11.2010, 18:29
Re: Need help! To add player classes and more. - by OldDirtyBastard - 22.11.2010, 18:40
Re: Need help! To add player classes and more. - by Kitten_Blind - 22.11.2010, 19:17
Re: Need help! To add player classes and more. - by armyoftwo - 22.11.2010, 19:24
Re: Need help! To add player classes and more. - by OldDirtyBastard - 22.11.2010, 19:29
Re: Need help! To add player classes and more. - by Kitten_Blind - 22.11.2010, 19:54

Forum Jump:


Users browsing this thread: 3 Guest(s)