Jump to content
  • 0

pomoc [HELP] Pasažér


MiNiX

Dotaz

Potřebuju pomoct. Udělal jsem si tovej skript že když někdo projede v autě takoví místo tak mu to odebere 2000 a změní jeho barvu nicku na bílou. To se mi podařilo ale chtěl bych aby se odečetli 2000 a změnila barva nicku taky pasažérovy. Nevím vůbec jak. Za každou pomoc budu vděčny :d.Předem dík :d Zatím čus...................... Jestli chcete klidně sem hodím i ten skript.

Link to comment
Share on other sites

11 odpovědí na tuto otázku

Recommended Posts

  • 0

new pasazer;

pasazer = GetPlayerState(playerid)

if (pasazer == PLAYER_STATE_PASSENGER)

 

 

 

Hmmm. Tak takhle to jde ale jen když v tom autě sedím sám na místě pasažéra.

Link to comment
Share on other sites

  • 0

new pasazer;
pasazer = GetPlayerState(playerid)
if (pasazer == PLAYER_STATE_PASSENGER)

if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)

Link to comment
Share on other sites

  • 0

omg

 

for(new hraci=0;hraci<MAX_KNEDLIKU;hraci++)
{
if(IsPlayerInRangeOfPoint(hraci,radius ,xyz)  == 1)
{
     if(IsPlayerInAnyVehicle(hraci))
     {
          if(GetPlayerMoney(hraci)>=2000)
          {
                  Ban(hraci);
          }
         else
         {
            scm: seš knedlík
         }
     }
}
}
 
nějak takhle to stačí
Link to comment
Share on other sites

  • 0
  • Globální moderátor

 

omg

 

for(new hraci=0;hraci<MAX_KNEDLIKU;hraci++)
{
if(IsPlayerInRangeOfPoint(hraci,radius ,xyz)  == 1)
{
     if(IsPlayerInAnyVehicle(hraci))
     {
          if(GetPlayerMoney(hraci)>=2000)
          {
                  Ban(hraci);
          }
         else
         {
            scm: seš knedlík
         }
     }
}
}
 
nějak takhle to stačí

 

 

ale takhle to bude občas dělat něco co nechceš ..

 

 
for(new hraci; hraci<MAX_PLAYERS;hraci++)
{
if(hraci == playerid) continue; //myslím že tak pokud ne tak místo continue brake...
if(IsPlayerInRangeOfPoint(hraci,radius ,xyz) ) //getplayerpos(playerid)
{
     if(IsPlayerInVehicle(hraci,GetPlayerVehicleID(playerid)))// nebo jak je ten příkaz
     {
          //je v autě
     }
}
}
Link to comment
Share on other sites

  • 0
  • Globální moderátor

 Hip děláš si prdel ? :d

 

to bych se měl já ptát tebe .... :d

 

to tvoje by fungovalo na hráče v okruhu jednoho metru a když už to píšeš tak aspoň pořádně a ne knedlíky .... :d

 

 

EDIT: ano na GetPlayerVehicleSeat jsem zapomněl ale i tak by to mělo fungovat... 

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