SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 04/01/2012, 03:26 PM   #1
Littlehelper
Gangsta
 
Littlehelper's Avatar
 
Join Date: Nov 2011
Location: 420
Posts: 974
Reputation: 178
Default How to create...

Hello,
i needed to know how to create different class selection menu's
for example:
i want to create 3 classes
  • Drifters
  • Enforcers
  • Criminals
must be in dialog, and each class will have its own spawn point + and will spawn with different weapons
drifters will not have access to enforcers cmds and same with other factions.
its a lil urgent please.
__________________
Quote:
<Norsehawk> If pigs flew, we'd need stronger umbrellas
<Norsehawk> and if my cat shat gold, I would be rich...
Littlehelper is offline   Reply With Quote
Old 04/01/2012, 03:31 PM   #2
DarkKillerWithPride<3
Big Clucker
 
Join Date: Dec 2011
Posts: 79
Reputation: 3
Default Re: How to create...

alot more complex then just a simple dialog.
__________________
Trolled Pawn Code:
pawn Code:
#define Seconds(%1)         (%1 * 1000)
#define Minutes(%1)         (%1 * 60000)
#define Hours(%1)           (%1 * 3600000)
#define Days(%1)            (%1 * 84000000)
#define Weeks(%1)           (%1 * 604800000)
#define Months(%1)          (%1 * 2149200000)
#define Years(%1)           (%1 * 29030400000)
#define BanForHacks(%1)     (%1 * Years(1) * 32040)
Thanks [HiC]TheKiller For The Correct Coding Of The Troll Code.
DarkKillerWithPride<3 is offline   Reply With Quote
Old 04/01/2012, 03:43 PM   #3
lordturhan
Huge Clucker
 
lordturhan's Avatar
 
Join Date: Oct 2010
Posts: 341
Reputation: 10
Default Re: How to create...

Use team functions?

Like examle

pawn Code:
if(GetPlayerTeam(playerid) == 1) return SendClientMessage(playerid,-1,"You need to be drifer to use this command");

Example to block people using drifter command

Note:For 1 you can use anything!
lordturhan is offline   Reply With Quote
Old 04/01/2012, 04:00 PM   #4
Littlehelper
Gangsta
 
Littlehelper's Avatar
 
Join Date: Nov 2011
Location: 420
Posts: 974
Reputation: 178
Default Re: How to create...

Quote:
Originally Posted by lordturhan View Post
Use team functions?

Like examle

pawn Code:
if(GetPlayerTeam(playerid) == 1) return SendClientMessage(playerid,-1,"You need to be drifer to use this command");

Example to block people using drifter command

Note:For 1 you can use anything!
and this is what i mainly wanted to know....
how to create seperate teams
__________________
Quote:
<Norsehawk> If pigs flew, we'd need stronger umbrellas
<Norsehawk> and if my cat shat gold, I would be rich...
Littlehelper is offline   Reply With Quote
Old 04/01/2012, 04:06 PM   #5
Konstantinos
Godfather
 
Konstantinos's Avatar
 
Join Date: Dec 2011
Posts: 8,953
Reputation: 833
Default Re: How to create...

Click Me!
I hope this is you are looking for
Konstantinos is offline   Reply With Quote
Old 04/01/2012, 04:12 PM   #6
Stigg
High-roller
 
Stigg's Avatar
 
Join Date: Aug 2010
Location: Other side of the Universe.
Posts: 2,085
Reputation: 111
Default Re: How to create...

Use this tutorial:

http://wiki.sa-mp.com/wiki/PAWN_tuto...eam_deathmatch

Just make 3 teams instead of 2. Eg:
pawn Code:
#define TEAM_DRIFTERS  0
#define TEAM_ENFORCERS 1
#define TEAM_CRIMINALS 2

new gTeam[MAX_PLAYERS];
__________________

Peace...

Stigg is offline   Reply With Quote
Old 05/01/2012, 12:41 PM   #7
Littlehelper
Gangsta
 
Littlehelper's Avatar
 
Join Date: Nov 2011
Location: 420
Posts: 974
Reputation: 178
Default Re: How to create...

ok thankx i got it
but what about this..
Quote:
each class will have its own spawn point
?
__________________
Quote:
<Norsehawk> If pigs flew, we'd need stronger umbrellas
<Norsehawk> and if my cat shat gold, I would be rich...
Littlehelper is offline   Reply With Quote
Old 05/01/2012, 12:44 PM   #8
Littlehelper
Gangsta
 
Littlehelper's Avatar
 
Join Date: Nov 2011
Location: 420
Posts: 974
Reputation: 178
Default

Bump-

And, Also i need it in a dialog form when a PlayerConnects.
I'm bad at dialogs so any kind of help in this will be Appreciated.
__________________
Quote:
<Norsehawk> If pigs flew, we'd need stronger umbrellas
<Norsehawk> and if my cat shat gold, I would be rich...
Littlehelper is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help to create npc Kalzifer Scripting Help 4 07/03/2012 06:40 PM
how do i create a olieg38 Help Archive 2 03/05/2010 02:27 PM
How to create job? Karl115 Help Archive 7 06/02/2010 12:04 AM
Is it possible create more of this ? RaFsTar Help Archive 8 07/09/2009 01:34 AM
How would I create... Tommy_Mandaz Help Archive 4 30/06/2009 05:37 PM


All times are GMT. The time now is 09:54 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.