30.11.2013, 18:23
pawn Код:
IsAPlane(vehicleid)
{
switch(GetVehicleModel(vehicleid))
{
case 460, 476, 511, 512, 513, 519, 520, 553, 577, 592, 593: return 1;
default: return 0;
}
return 0;
}
CMD:airplane(playerid, params[])
{
new Vehicleid = GetPlayerVehicleID(playerid);
If(IsAPlane(vehicleid)) return SendClientMessage(playerid, 0xFFFFFFFF, "You are in a Plane!");
If(!IsAPlane(vehicleid)) return SendClientMessage(playerid, 0xFFFFFFFF, "You are not in a Plane!");
return 1;
}