Jump to content
  • 0

pomoc Střínení z motorky


lekpri

Dotaz

Ahoj mám ještě jeden dotaz a problém.

 

Chtěl bych abych mohl střílet z motorky nebo z auta, dříve jsem to měl pak jsem někde něco udělal a teď nevím jak to vrátit.

Prosím o rady

 

Děkuji

Link to comment
Share on other sites

11 odpovědí na tuto otázku

Recommended Posts

  • 0

Ani tak to tam nemám

 

public OnPlayerEnterVehicle(playerid, vehicleid)
{
for(new x=0; x<MAX_PLAYERS; x++)
{
   if(GetPlayerState(x) == PLAYER_STATE_SPECTATING && AccInfo[x][specID] == playerid)
{
  TogglePlayerSpectating(x, 1);
  PlayerSpectateVehicle(x, vehicleid);
  AccInfo[x][specType] = ADMIN_SPEC_TYPE_VEHICLE;
}
}
return 1;
}
 
//==============================================================================
public OnPlayerStateChange(playerid, newstate, oldstate)
{
switch(newstate)
{
case PLAYER_STATE_ONFOOT:
{
switch(oldstate)
{
case PLAYER_STATE_DRIVER: OnPlayerExitVehicle(playerid,255);
case PLAYER_STATE_PASSENGER: OnPlayerExitVehicle(playerid,255);
}
}
}
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...