SA-MP Forums Archive
Need you help in script code - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Need you help in script code (/showthread.php?tid=328543)



Need you help in script code - lonako45 - 25.03.2012

So ,
If my English is not good, I'm sorry I'm not unfamiliar with the language
I want to do if a player comes to the area X
So he explode many times until he died,
Unless I give him access to this area
Wait to question


Re: Need you help in script code - emokidx - 25.03.2012

pawn Код:
if(IsPlayerInRangeOfPoint(playerid, range, enter the coords) && permission == 0)
{
CreateExplosion(enter the player coords, type, radius);
CreateExplosion(enter the player coords, type, radius);
CreateExplosion(enter the player coords, type, radius);
//w/e amount you want
}
something like this

https://sampwiki.blast.hk/wiki/CreateExplosion
https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint


Re: Need you help in script code - sniperwars - 25.03.2012

Try this lonako45:

pawn Код:
if(IsPlayerInRangeOfPoint(playerid, range, enter the coordinates here) && permission == 0)
{
    CreateExplosion(Enter the coordinates here, type, radius);
    CreateExplosion(Enter the coordinates here, type, radius);
    CreateExplosion(Enter the coordinates here, type, radius);
    //Whatever amount you want//
}
You can also refer to these pages from the SAMP wiki:

CreateExplosion
IsPlayerInRangeOfPoint


Re: Need you help in script code - Twisted_Insane - 25.03.2012

Did you guys actually read what he wants? He said in AREA X, not in a range of somewhere! So as far as I know, he'll has to use "IsPlayerInArea"!

https://sampwiki.blast.hk/wiki/Areacheck


Re: Need you help in script code - The__ - 25.03.2012

Quote:
Originally Posted by sniperwars
Посмотреть сообщение
Try this lonako45:

pawn Код:
if(IsPlayerInRangeOfPoint(playerid, range, enter the coordinates here) && permission == 0)
{
    CreateExplosion(Enter the coordinates here, type, radius);
    CreateExplosion(Enter the coordinates here, type, radius);
    CreateExplosion(Enter the coordinates here, type, radius);
    //Whatever amount you want//
}
You can also refer to these pages from the SAMP wiki:

CreateExplosion
IsPlayerInRangeOfPoint
Are you fucking kidding me ? you just fixed his shortcuts, added capital letters and that's it, idiot.
Make w/e to Whatever, you are a really good scripter.


Re: Need you help in script code - lonako45 - 25.03.2012

Hammm OK
I have one erorr: error 017: undefined symbol "permission"


Re: Need you help in script code - Vrondakis - 25.03.2012

Quote:
Originally Posted by The__
Посмотреть сообщение
Are you fucking kidding me ? you just fixed his shortcuts, added capital letters and that's it, idiot.
Make w/e to Whatever, you are a really good scripter.
Well said.




Re: Need you help in script code - .FuneraL. - 25.03.2012

Quote:
Originally Posted by lonako45
Посмотреть сообщение
Hammm OK
I have one erorr: error 017: undefined symbol "permission"
The Symbol "permission" is not defined, try to create a new set it


Re: Need you help in script code - lonako45 - 25.03.2012

I try that
it doesn't work
i made new code and no error
but also no explode
This the code
PHP код:
if(IsPlayerInRangeOfPoint(playerid11387.9012,2212.4507,12.0156))
{
new 
Float:xFloat:yFloat:z;
 
CreateExplosion(xyz610.0);
 
CreateExplosion(xyz610.0);
 
CreateExplosion(xyz610.0);
return 
1;




Re: Need you help in script code - lonako45 - 25.03.2012

Quote:
Originally Posted by Twisted_Insane
Посмотреть сообщение
Did you guys actually read what he wants? He said in AREA X, not in a range of somewhere! So as far as I know, he'll has to use "IsPlayerInArea"!

https://sampwiki.blast.hk/wiki/Areacheck
Yes!!!
its what i need!!!
Thank you my friend