14.04.2009, 21:21
Yeh you need:
pawn Код:
if (!strcmp (cmdtext,"/nos", true))
{
if(IsPlayerInAnyVehicle(playerid))
{
new vehid, modid;
vehid = GetPlayerVehicleID(playerid);
modid = GetVehicleModel(vehid);
if(modid != 581 && modid != 509 && modid != 481 && modid != 462 && modid != 521 && modid != 436 && modid != 510 && modid != 522 && modid != 461 && modid != 448 && modid != 471 && modid != 468 && modid != 586)
{
AddVehicleComponent(vehid,1010);
return 1;
}
return SendClientMessage(playerid,0xFF0000FF,"Invalid vehicle!(probably a bike)");
}
return SendClientMessage(playerid,0xFF0000FF,"Enter a vehicle first!");
}