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(playerid, 1, 1387.9012,2212.4507,12.0156))
{
new Float:x, Float:y, Float:z;
CreateExplosion(x, y, z, 6, 10.0);
CreateExplosion(x, y, z, 6, 10.0);
CreateExplosion(x, y, z, 6, 10.0);
return 1;
}
Re: Need you help in script code -
lonako45 - 25.03.2012
Quote:
Originally Posted by Twisted_Insane
|
Yes!!!
its what i need!!!
Thank you my friend