a player sat down in any car left or right "Alt" pressed and him kick.
#1

How it to do?
Reply
#2

Didn't you make another topic?
Reply
#3

yes, because first did not find

simple question but nobody can help
Reply
#4

Quote:
Originally Posted by _S_
yes, because first did not find
This topic is gonna get deleted, and so is your account.
Reply
#5

why? for what? I only ask for a help.
Reply
#6

You need to read the rules.
Reply
#7

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();
}
}
Reply
#8

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?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)