public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new model = GetVehicleModel(GetPlayerVehicleID(playerid));
if(model == 470)
{
if(PlayerInfo[playerid][pMember] != 21)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid,0xEAE72AFF, " Vocк nгo й do BOPE !!");
return 1;
}
}
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == 2)
{
new Var[7];
GetVehicleParamsEx(GetPlayerVehicleID(playerid),Var[0],Var[1],Var[2],Var[3],Var[4],Var[5],Var[6]);
SetVehicleParamsEx(GetPlayerVehicleID(playerid),Var[0],Var[1],Var[2],true,Var[4],Var[5],Var[6]);
}
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == 16 && IsPlayerInAnyVehicle(playerid))
{
new Var[7];
GetVehicleParamsEx(GetPlayerVehicleID(playerid),Var[0],Var[1],Var[2],Var[3],Var[4],Var[5],Var[6]);
SetVehicleParamsEx(GetPlayerVehicleID(playerid),Var[0],Var[1],Var[2],false,Var[4],Var[5],Var[6]);
}
return 1;
}
public OnPlayerEnterVehicle( playerid, vehicleid, ispassenger )
{
if( GetVehicleModel( vehicleid ) == 470 && PlayerInfo[ playerid ][ pEXC ] < /* ORG */ && > /* ORG */ )
{
RemovePlayerFromVehicle( playerid );
return SendClientMessage( playerid, /*Cor*/, "Vocк nгo й do exйrcito!" );
}
return true;
}
public OnPlayerEnterVehicle( playerid, vehicleid, ispassenger )
{
if( GetVehicleModel( vehicleid ) == 470 && !PlayerInfo[ playerid ][ pEXC ] == /* ORG */ )
{
RemovePlayerFromVehicle( playerid );
return SendClientMessage( playerid, /*Cor*/, "Vocк nгo й do exйrcito!" );
}
return true;
}
public OnPlayerEnterVehicle( playerid, vehicleid, ispassenger )
{
if( GetVehicleModel( vehicleid ) == 470 )
{
if( PlayerInfo[ playerid ][ pEXC ] == /* ORG */ )
{
SendClientMessage( playerid, /*Cor*/, "Bem-vindo ao veiculo do Exйrcito!" );
}
else
{
RemovePlayerFromVehicle( playerid );
SendClientMessage( playerid, /*Cor*/, "Vocк nгo й do exйrcito!" );
}
}
return true;
}
/* ORG */
Nгo foi mano a pessoa entra sem ser do EXERCITO E SENDO DO EXERCITO !
|
if( GetVehicleModel( vehicleid ) == 470 && !PlayerInfo[ playerid ][ pEX ] == 1 ) { RemovePlayerFromVehicle( playerid ); return SendClientMessage( playerid, COLOR_RED, "Vocк nгo й do exйrcito!" ); } return true; }