a player sat down in any car left or right "Alt" pressed and him kick. -
_S_ - 04.03.2010
How it to do?
Re: a player sat down in any car left or right "Alt" pressed and him kick. -
SloProKiller - 04.03.2010
Didn't you make another topic?
Re: a player sat down in any car left or right "Alt" pressed and him kick. -
_S_ - 04.03.2010
yes, because first did not find
simple question but nobody can help
Re: a player sat down in any car left or right "Alt" pressed and him kick. -
SloProKiller - 04.03.2010
Quote:
Originally Posted by _S_
yes, because first did not find
|
This topic is gonna get deleted, and so is your account.
Re: a player sat down in any car left or right "Alt" pressed and him kick. -
_S_ - 04.03.2010
why? for what? I only ask for a help.
Re: a player sat down in any car left or right "Alt" pressed and him kick. -
Eazy_Efolife - 04.03.2010
You need to read the rules.
Re: a player sat down in any car left or right "Alt" pressed and him kick. -
_S_ - 04.03.2010
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == KEY_WALK && IsPlayerInAnyVehicle(playerid))
Kick(playerid);
new string[256];
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
if ((newkeys==KEY_SUBMISSION)&&(IsPlayerInAnyVehicle( playerid))&&(GetPlayerState(playerid)==PLAYER_STAT E_DRIVER))
{
if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 437)
{
if(PlayerInfo[playerid][BLicence] == 1)
{
if (busdriver[playerid]<0)
{
BusMission(playerid);
}
else
{
TerminarBusMission(playerid);
}
}
}
if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 420)
{
if(PlayerInfo[playerid][TLicence] == 1)
{
if (playerInMiniMission[playerid]<0)
{
MissionIni(playerid);
}
else
{
terminarMission(playerid);
}
}
}
}
//---------------------------------[Gym Ganto]-------------------------------
if (newkeys==KEY_SECONDARY_ATTACK && PlayerToPoint(2,playerid,773.5,-1.0,1000.7))
{
if(walkgym==0)
{
SetPlayerPos(playerid,773.4,-2.5,1000.
;
SetPlayerFacingAngle(playerid,174.
;
TogglePlayerControllable(playerid,0);
StandWalk(playerid);
}
else
{
format(string,sizeof(string),"~r~This place is busy now!.");
GameTextForAll(string,3000,3);
}
}
if (newkeys==KEY_SPRINT && PlayerToPoint(1,playerid,773.4,-2.5,1000.
)
{
if (gymwalk[playerid]==1)
{
OffWalk();
}
}
Re: a player sat down in any car left or right "Alt" pressed and him kick. -
kaisersouse - 04.03.2010
Wrong area (you want scripting) and long bits of code should go into pastebin and then the pastebin link pasted here.
That said:
The armchair-admins need to give it a rest. He's not going to get banned, nor his account deleted.
Also:
Код:
if(newkeys == KEY_WALK && IsPlayerInAnyVehicle(playerid))
Kick(playerid);
I see no reason why that needs to exist. Why on earth would you want to kick someone for trying to walk while in a car?