SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Romānă/Romanian

 
 
Thread Tools Display Modes
Old 20/12/2017, 12:06 PM   #1
Marlborox
Little Clucker
 
Join Date: Feb 2017
Posts: 8
Reputation: 0
Default Quest Help

Salut , cum pot face si eu sa pun acea lumina in acel obiect ( sunt 2 obiecte acolo ) respectiv ca obiectul cu lumina sa nu apara si dupa ce iau obiectul de la quest , obiectul cu lumina sa apara , o sa va las un video cum doresc eu sa fac.
Video: https://youtu.be/L7pg55hFOMU
Marlborox is offline  
Old 20/12/2017, 03:15 PM   #2
Yuri8
Big Clucker
 
Join Date: Nov 2016
Posts: 72
Reputation: 0
Post Re: Quest Help

Salut! Daca vrei cu textdraw (ca-n video) va fi mai complicat putin, dar asa o gandesc eu:
PHP Code:
if(IsPlayerInRangeOfPoint(playerid15.0XYZ) { 
     if(
Picked[playerid][x]) {
          
//Textdraw si celelalte
     
}

Eu am gandit-o mai complex, dar nu pot chiar acum. Deci : La IsPlayerInRangeOfPoint sa-ti explic,
playerid = id-ul jucatorului
15.0 = distanta, o poti modifica, eu zic ca 15 e ok
X, Y, Z = coordonate. Pentru mai multe infornatii
http://wiki.sa-mp.com/wiki/IsPlayerInRangeOfPoint

La Picked[...] e verificarea daca jucatorul a colectat obiectul. Sistemul e static ( nu se salveaza ). Daca vrei sa se salveze poti folosi ceva de genu PlayerInfo[playerid][pQuest1], schimba 1 cu id-ul obiectului, gen daca ai 50 de obiecte primul id e PlayerInfo[playerid][pQuest1], iar ultimul e PlayerInfo[playerid][pQuest50] .

Sper ca te-am ajutat. Daca mai ai nevoie da-mi PM sau da reply. O zi frumoasa!
Yuri8 is offline  
 

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
Quest Help Marlborox Scripting Help 2 20/12/2017 03:05 PM
NPC Quest usersamp Scripting Help 2 19/09/2011 10:42 AM
Quest|All who know NPC. orking990 Help Archive 8 23/10/2009 02:40 PM


All times are GMT. The time now is 02:17 AM.


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