|
|
#1 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Apr 2012
Location: Locating...
Posts: 438
Reputation: 35
|
Easy Class Selection! Hello, Today I will teach you how to make easy class selections in a few steps! Let's get started: First of all, You want to use the AddPlayerClass function. Code:
AddPlayerClass(288,2296.5662,2451.6270,10.8203,87.8270,0,0,0,0,0,0); After adding your classes you move on to OnPlayerRequestClass. We will be using (switch). pawn Code:
Last but not least, to force a player class selection after connecting, add this under OnPlayerConnect: pawn Code:
Hope this helps you. (First tutorial, no hate? )
Last edited by Elysian`; 26/06/2012 at 08:00 PM. |
|
|
|
|
|
#2 |
|
Big Clucker
![]() ![]() Join Date: Sep 2010
Posts: 199
Reputation: 85
|
Hmm,I've got one question:
- What's point af adding team at Request Class? :\ Add team at player spawn
|
|
|
|
|
|
#3 |
|
Banned
![]() Join Date: Apr 2012
Posts: 57
Reputation: 2
|
How to get CameraPos? and CameraLookAt?
|
|
|
|
|
|
#4 | |
|
Huge Clucker
![]() ![]() ![]() Join Date: Apr 2012
Location: Locating...
Posts: 438
Reputation: 35
|
Quote:
Say if you took the coords standing infront of the Los Santos police station.. You use /save again infront of the player facing the Police Station. If you know what I mean? |
|
|
|
|
|
|
#5 |
|
Banned
![]() Join Date: Apr 2012
Posts: 57
Reputation: 2
|
You kidding me? Man , that gives the x,y,z coords.
|
|
|
|
|
|
#6 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Apr 2012
Location: Locating...
Posts: 438
Reputation: 35
|
Yes I know that, it will tell the camera what coords to look at, hence CameraLookAt.
|
|
|
|
|
|
#7 |
|
Godfather
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jan 2011
Location: England
Posts: 5,264
Reputation: 748
|
|
|
|
|
|
|
#8 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Apr 2012
Location: Locating...
Posts: 438
Reputation: 35
|
What's that about?
|
|
|
|
|
|
#9 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Dec 2009
Location: UK, Wales
Posts: 301
Reputation: 18
|
C:\Users\Ghost\Desktop\Unique Freeroam\gamemodes\freeroam.pwn(144) : error 033: array must be indexed (variable "Team")
C:\Users\Ghost\Desktop\Unique Freeroam\gamemodes\freeroam.pwn(153) : error 033: array must be indexed (variable "Team") Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 2 Errors. |
|
|
|
|
|
#10 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Apr 2012
Location: Locating...
Posts: 438
Reputation: 35
|
Add "Team" in your enum.
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [HELP] Class Selection - Showing the class name? | CrucixTM | Scripting Help | 13 | 26/04/2012 06:38 PM |
| Help Setting A Player Class before class selection | Madd Kat | Scripting Help | 5 | 09/02/2012 05:19 PM |
| Class selection help | _Sprite_ | Help Archive | 5 | 06/12/2010 03:27 PM |
| help me with Class Selection Showing the class name | The_Cobra | Help Archive | 2 | 05/02/2010 05:22 PM |
| Class selection | Goobiiify | Help Archive | 4 | 18/08/2009 12:09 PM |