Jump to content
  • 0

pomoc Help pls


Paulie

Dotaz

12 odpovědí na tuto otázku

Recommended Posts

  • 0

new Float:X,Float:Y,Float:Z; tak to nahoru mezi new

 

A tuto kam??Nejsem si jistej Onplayercommandtext nebo Ongamemodelnit

GetPlayerPos(playerid,X,Y,Z);

if(X >= 1434.2643 && X <= 1553.8864 && Y >= 3046.1848 && Y <= 3225.6440){

// Funkce příkazu

}

Problém je že nwm co kam mam dát :lol:

Link to comment
Share on other sites

  • 0

public groove

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

GetPlayerPos(playerid,X,Y,Z);

if(X >= 1434.2643 && X <= 1553.8864 && Y >= 3046.1848 && Y <= 3225.6440){

}

 

Takle?

Link to comment
Share on other sites

  • 0

Medzi forwardy

 

forward groove(playerid)

 

OnGameModeInit

 

SetTimer("groove"1000,1);

 

 

na koniec modu

 

public groove(playerid)
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
if(X >= 1434.2643 && X <= 1553.8864 && Y >= 3046.1848 && Y <= 3225.6440)
{
//co sa stane ak je hrac v tych suradkach
}
return 1;
}

 

a nezvykaj si ze ti tu budeme pisat cele kody zapoj hlavu

Link to comment
Share on other sites

  • 0

Ok dík ,ale nejde to... neházíto žádný error a warning ,ale nic se mi nezobrazí ,mam to takle:

forward gro(playerid);

 

SetTimer("gro",1000,1);

 

public gro(playerid)
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
if(X >= 2500.4075 && X <= -1450.8658 && Y >= 2223.4580 && Y <= -1736.3143)
{
SendClientMessage(playerid, COLOR_GREEN, "Si na území Groove Street Families!");
}
return 1;
}

 

Jinak souřadnice mam správně..Nechápu proč to nejde :thumbdown:

Link to comment
Share on other sites

  • 0

pokud budeš mít public s playerid a bude vyvolaný SetTimerem tak to bude jen pro id 0, musíš udělat cyklus for pro všechny hráče :

 

forward gro();

 

SetTimer("gro",1000,1);

 

public gro()
{
for(new i=0;i<= GetMaxPlayers();i++)
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(i,X,Y,Z);
if(X >= 2500.4075 && X <= -1450.8658 && Y >= 2223.4580 && Y <= -1736.3143)
{
SendClientMessage(i, COLOR_GREEN, "Si na území Groove Street Families!");
}
}
return 1;
}

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...