Jump to content
  • 0

pomoc Cestovni pas


HighPrint

Dotaz

12 odpovědí na tuto otázku

Recommended Posts

  • 0

no udelej si settimer, podminku ze neni hrac v areii

 

public Pass(playerid)

{

new i, Float:X, Float:Y, Float:Z;

new Float:health;

for (i = 0; i < MAX_PLAYERS; i++)

{

GetPlayerPos(i, X, Y, Z);

if((X >= Float:X && X <= Float:X && Y >= Float:Y && Y <= Float:Y))

{

if (promena ridicaku)

{

GetPlayerHealth(i, health);

SetPlayerHealth(i, health - 7);

}}}}

 

tu x, x2, y, y2

 

tam doplnis ze si udelas areu, kde se bude hrat, lehce ji udelas pres tendle program

[attachment=0]Xtreme Vehicle Plotter.zip[/attachment]

Link to comment
Share on other sites

  • 0

v tom programu mas souradnice

 

ve tvaru

 

Float:minx, Float:miny, Float:maxx, Float:maxy)

 

 

 

a vlozis je sem

 

f((X >= Float:X && X <= Float:X && Y >= Float:Y && Y <= Float:Y))

Link to comment
Share on other sites

  • 0
  • Globální moderátor

j diky chytraku :)

 

 

plz help mi stimhle :(

 

(6439) : error 035: argument type mismatch (argument 2)
(6440) : warning 213: tag mismatch
(6440) : warning 213: tag mismatch
(6440) : warning 213: tag mismatch
(6440) : warning 213: tag mismatch
(6440) : warning 206: redundant test: constant expression is non-zero

 

radky:

6440: if((X >= 2977.858 && X <= -3771.954 && Y >= 3830.343 && Y <= -782,4177))
6439: GetPlayerPos(i, X, Y, Z);

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...