28.06.2012, 06:43
pawn Код:
CMD:test(playerid, params[])
{
if(IsPlayerInVehicle(playerid, 522))
{
//Do something if they are in NRG
}
//If they are not in NRG
return 1;
}
pawn Код:
stock IsCertainVehicle(playerid)
{
if(IsPlayerInVehicle(playerid, 522) || IsPlayerInVehicle(playerid, 411))
{
return true;
}
else return false;
}
pawn Код:
CMD:test(playerid, params[])
{
if(IsCertainVehicle(playerid))
{
//If they are in NRG or Infernus
}
//If they are NOT in NRG or Infernus
return 1;
}