Jump to content

(Tut) Určité Misto Pro Použití Príkazu


Jáá

Recommended Posts

1. - Já sem to nazval podla seba volám to IsPlayerInZona :) nieje to pravdivé ale mne to pomáha , volá sa to IsPlayerInRangeOfPoint

 

 

 

 

2. - Parametre :

 

 

Parameters:
(playerid, Float:range, Float:x, Float:y, Float:z)

 

 

 

 

Float:x súradnice

Float:y súradnice

Float:z súradnice

 

 

3. - Použitie :

 

if(!strcmp("/mise",cmdtext))
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2695.6880, -1704.6300, 11.8438))
{
 SendClientMessage(playerid,0xFFFFFFFF,"Príkaz po vyvolani funkcie /mise");
}
return 1;
}
  • if(IsPlayerInRangeOfPoint(playerid, 7.0, 2695.6880, -1704.6300, 11.8438))
  • if(IsPlayerInRangeOfPoint(playerid, 7.0, x , y , z))

4. - Warp :

 

 

GetPlayerPos(playerid, x, y, z);

  • x, y, z súradnice

if(!strcmp("/warp",cmdtext))
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2695.6880, -1704.6300, 11.8438))
{
GetPlayerPos(playerid, 2695.6880, -1704.6300, 11.8438);
}
return 1;
}

 

 

5. - Osladenie :d label textom

 

 

public OnGameModeInit()
{
Create3DTextLabel("Stlac ......:\n30.0, 40.0, 50.0", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0, 0);
return 1;
}

 

 

tento label si môžete pridat na miesto kde je ta zona aby hrac spoznal ze kde to ma stlacit ..

  • Líbí se mi to! (+1) 1
Link to comment
Share on other sites

2. - Parametre :

Float:Range si kde nechal :d :d ? Inak .. Toto si ani TuT robiť nemusel každý pozná tieto funkcie .. A jak nie wiki.sa-mp .. :d Totálne zbytočné.. :)

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