08.05.2011, 11:06
pawn Код:
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;
}
Ou tambйm pode:
pawn Код:
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;
}
Ou tambйm pode:
pawn Код:
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;
}
pawn Код:
/* ORG */