Need you help in script code
#1

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
Reply
#2

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
Reply
#3

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
Reply
#4

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
Reply
#5

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.
Reply
#6

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

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.

Reply
#8

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
Reply
#9

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;

Reply
#10

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)