|
 |
|
|
|
|
|
Attention:
This is for the discussion and releasing of tutorials for modifying GTA. Anything that isn't a tutorial will be deleted without notification.
- Please read the Official Modification Forum Rules & Procedure BEFORE posting!
- Data topics: The following topics contain information for formatting and writing tutorials.
- Requests are to be made in the pinned topic.
- New topics to this forum are subject to moderation, and will not appear immediately. Pending approval by a moderator, if a topic is deemed unsuitable it will be deleted without notification.
|
GTAGarage.com free mod hosting from GTANet, simply login with your GTAForums account details
GTAModding.com GTANet's modding wiki
GTA Modding Chatroom provided by irc.gtanet.com (Don't have an IRC client? Click here)
|
[GTA SA] ~ CLEO Script Tutorial ~
 |
|
 |
| |
ZAZ  |
Posted: Thursday, Aug 16 2012, 05:04
|
Kernlochbohrer

Group: Members
Joined: Jan 10, 2005



|
@Michael-Knight1: please don't spam | QUOTE (stevendabuffman @ Thursday, Aug 16 2012, 00:58) | Yes, I have some music that I want to use and I'm trying to make it so when my character (Sweet) spawns the music will automatically come on (it will loop) then when he despawns or dies it will stop, is that possible ? Thank you for replying  For what I'm making there are several characters that have their own music, It's a DYOM project, I can code but I'm having trouble doing this, lol. |
| CODE | //your conditions and actor spawn codes
if 0AAB: file_exists "CLEO\mymusic.mp3" else_jump @Exit
:Loop_1 wait 0 0AAC: 0@ = load_mp3 "CLEO\mymusic.mp3" if 8039: not 0@ == -1 else_jump @Loop_1 0AAD: set_mp3 0@ perform_action 1
:Loop_2 wait 0 0AB9: get_mp3 0@ state_to 1@ if 0038: 1@ == -1 else_jump @Loop_2 0AAD: set_audiostream 0@ perform_action 0 0AAE: release_mp3 0@
:Exit jump @to_scriptbeginn |
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
kalonkas  |
|
Player Hater

Group: Members
Joined: Aug 18, 2012

|
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
ZAZ  |
|
Kernlochbohrer

Group: Members
Joined: Jan 10, 2005



|
| QUOTE (kalonkas @ Sunday, Aug 19 2012, 06:59) | | QUOTE (ZAZ @ Saturday, Aug 18 2012, 21:35) | | QUOTE (kalonkas @ Saturday, Aug 18 2012, 19:38) | Hello Zaz, i have just started modding and i would like to know if there any way to make an actor stand without moving on my coords and when i come near him he talk to me like drug dylers you can reply Y or N but if i press Y he give me beer and i can drink it. Is it possible? 
Sorry for bad english (if it's bad. ) |
yes |
How I do it ?  |
learn scripting, start at the first post und study the lessons write a script to spawn actor, then come back and post your script
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:
Pages:
(31) « First ... 20 21 [22] 23 24 ... Last »
Track this topic
Receive email notification when a reply has been made to this topic and you are not active on the board.
Subscribe to this forum
Receive email notification when a new topic is posted in this forum and you are not active on the board.
Download / Print this Topic
Download this topic in different formats or view a printer friendly version.
| |
 |
|
 |
|
|
|
|