16.01.2013, 06:05
Hi everyone!
Today i am finally allowed to access forum!
Okay, so i am working in pawno for few days, im beginner, i was just changing something renaming CMD-s, making some simple cmd-s and etc...
Im interested how can i make make that when player is only in car to turn some music thats added in pawno:
So how can i make script to play music when player is only in car and error when player is not in car
i think its not that complicated but i don't get much that 'if','else'...
Thanks!
Today i am finally allowed to access forum!
Okay, so i am working in pawno for few days, im beginner, i was just changing something renaming CMD-s, making some simple cmd-s and etc...
Im interested how can i make make that when player is only in car to turn some music thats added in pawno:
Код:
CMD:music1(playerid, params[]) { PlayAudioStreamForPlayer(playerid, "http://k006.kiwi6.com/hotlink/lk36f085y3/12.hot_right_now_feat._dj_fresh.mp3"); SendClientMessage(playerid, COLOR_WHITE, "Now playing: Rita Ora-Hot right now Feat. DJ Fresh"); return 1; }
i think its not that complicated but i don't get much that 'if','else'...
Thanks!