Scripting Tutorial 3 - Crazy Clothes

All Lua scripting topics related to Multi Theft Auto.

Moderators: Moderators, MTA team

Scripting Tutorial 3 - Crazy Clothes

Postby jhxp on Mon Jan 29, 2007 3:17 pm

NOTICE: THIS TUTORIAL MAY BE OUTDATED! PLEASE READ: http://forum.mtasa.com/viewtopic.php?f=91&t=22270

This week we are showing you a script called "Crazy Clothes". It will teach you how to use Lua in order to pick a random piece of cloth, and automatically make the player wear it.

The tutorial can be found here.

Post your thoughts and comments about the tutorial here.
One of the [VCP] leaders // honorary member of =PCP=
Image Image
User avatar
jhxp
Super Moderator
 
Posts: 1368
Joined: Mon Jan 26, 2004 6:51 am
Location: Poland
Gang: VCP/PCP

Postby bloodeye on Mon Jan 29, 2007 3:56 pm

Not to amazed by this sadly :? seems a bit pointless. Although.. having a team death match with teams randonly changing everything 30secs would be crazy! ofcource FF would be enabled.
User avatar
bloodeye
Regular
 
Posts: 157
Joined: Fri Apr 22, 2005 7:45 pm
Location: England - Wiltshire

Postby Ace_Gambit on Mon Jan 29, 2007 4:15 pm

What seems pointless to you may be useful to others :wink: . I was thinking of a CTF map where players can get the "gang colors" of the other team by killing a player on the other team. Or a remake of VC's Copland mission where criminals get police uniforms :lol: .
User avatar
Ace_Gambit
Experienced
 
Posts: 533
Joined: Mon Dec 25, 2006 12:58 pm
Location: Amsterdam

Postby .:SDK:. on Mon Jan 29, 2007 4:30 pm

bloodeye wrote:Not to amazed by this sadly :? seems a bit pointless. Although.. having a team death match with teams randonly changing everything 30secs would be crazy! ofcource FF would be enabled.

Maybe this is a combination to show people how to change clothes and how to use a timer, it can't only do what it does in the video. That's why you can script ^^
.:SDK:.
Regular
 
Posts: 215
Joined: Tue Aug 29, 2006 8:07 am

Postby crazyfurie on Mon Jan 29, 2007 5:31 pm

can i have downlaod link to this weeks tut please my internet wont let me watch the vid on this internet :(
User avatar
crazyfurie
New User
 
Posts: 62
Joined: Mon May 29, 2006 9:41 am
Gang: [W]

Postby Ace_Gambit on Mon Jan 29, 2007 5:38 pm

crazyfurie wrote:can i have downlaod link to this weeks tut please my internet wont let me watch the vid on this internet :(


Right-click save...
User avatar
Ace_Gambit
Experienced
 
Posts: 533
Joined: Mon Dec 25, 2006 12:58 pm
Location: Amsterdam

Postby paul527 on Mon Jan 29, 2007 5:39 pm

Ace{NL} wrote:What seems pointless to you may be useful to others :wink: . I was thinking of a CTF map where players can get the "gang colors" of the other team by killing a player on the other team. Or a remake of VC's Copland mission where criminals get police uniforms :lol: .


cool idea 8)
Image
Image

"What if we all lent a hand?" - Cherry Rose

"A picture is worth a thousand words, unless it's a picture of 1 word."
User avatar
paul527
Veteran
 
Posts: 1474
Joined: Tue Oct 12, 2004 5:49 pm
Location: The United States of America
Gang: LibertyCityGangsters

Postby Phat Looser on Mon Jan 29, 2007 6:37 pm

bloodeye wrote:Not to amazed by this sadly :? seems a bit pointless. Although.. having a team death match with teams randonly changing everything 30secs would be crazy! ofcource FF would be enabled.


Spose it can be done with clothing, too, so its interesting for the RPG servers out here.
User avatar
Phat Looser
Regular
 
Posts: 244
Joined: Wed Dec 31, 2003 10:47 am

Postby Azu on Mon Jan 29, 2007 8:29 pm

I suppose this would be useful for RPG servers...
Image
Azu
Regular
 
Posts: 219
Joined: Sat Dec 09, 2006 5:35 am

Postby kevuwk on Tue Jan 30, 2007 4:24 am

bloodeye wrote:Not to amazed by this sadly :? seems a bit pointless. Although.. having a team death match with teams randonly changing everything 30secs would be crazy! ofcource FF would be enabled.


i don't really think the idea of these tutorials is to amaze you, i think its more to show you what can be done with the scripts and some of the functions and events you can use so people that want to make scripts will have a good idea of how to do it at the point of release
Kevuwk
Image
Image
Any comments made are purely my own and do not represent the interests of the MTA Team
kevuwk
The MTA Team
 
Posts: 433
Joined: Wed May 04, 2005 5:08 pm
Location: UK

Postby norby89 on Tue Jan 30, 2007 9:03 am

Azu wrote:I suppose this would be useful for RPG servers...

/me thinks... spies!
:d: :i: :s: :g: :r: :a: :c: :e:
Image
User avatar
norby89
Moderator
 
Posts: 900
Joined: Wed Feb 01, 2006 10:55 am
Gang: RaFS

Postby [TDH]Boss on Tue Jan 30, 2007 10:06 am

Is it possible to change player's skin (for example to soldier) and then put some clothes on him?
Image
Image
User avatar
[TDH]Boss
Regular
 
Posts: 122
Joined: Sun Jan 21, 2007 3:51 am
Location: Russia, Moscow
Gang: Team Dies Hard

Postby norby89 on Tue Jan 30, 2007 10:24 am

[TDH]Boss wrote:Is it possible to change player's skin (for example to soldier) and then put some clothes on him?

by the ooks of it, yes I suppose
:d: :i: :s: :g: :r: :a: :c: :e:
Image
User avatar
norby89
Moderator
 
Posts: 900
Joined: Wed Feb 01, 2006 10:55 am
Gang: RaFS

Postby lil Toady on Tue Jan 30, 2007 10:33 am

[TDH]Boss wrote:Is it possible to change player's skin (for example to soldier) and then put some clothes on him?

GTA doesn't support clothes on any other skin than CJ, so no.
Image
Do not PM me or bant! I won't reply anyway.
User avatar
lil Toady
The MTA Team
 
Posts: 1813
Joined: Sun Apr 24, 2005 8:07 pm
Location: Russia, Moscow
Gang: Full Metal Jacket

Postby norby89 on Tue Jan 30, 2007 10:37 am

lil Toady wrote:GTA doesn't support clothes on any other skin than CJ, so no.

hmm so you are saying that all 4 guys in the vid are CJ? it's a bit dark, you can't really see their faces
Last edited by norby89 on Tue Jan 30, 2007 10:39 am, edited 1 time in total.
:d: :i: :s: :g: :r: :a: :c: :e:
Image
User avatar
norby89
Moderator
 
Posts: 900
Joined: Wed Feb 01, 2006 10:55 am
Gang: RaFS

Next

Return to Scripting

Who is online

Users browsing this forum: 50p and 0 guests