06.01.2008, 20:38
U need this 
they have all rc vehicles and Your TRAM :P

Код:
public keys() { new lKeys, Mike1, Mike2; new Float:px,Float:py,Float:pz; new Float:cx,Float:cy,Float:cz; for(new i = 0; i < SLOTS; i++) { if(IsPlayerConnected(i)) { GetPlayerPos(i,px,py,pz); for(new j = 0; j < MAX_VEHICLES; j++) { if(GetVehicleModel(j) == 441 || GetVehicleModel(j) == 449 || GetVehicleModel(j) == 464 || GetVehicleModel(j) == 465 || GetVehicleModel(j) == 501 || GetVehicleModel(j) == 564 || GetVehicleModel(j) == 594) { GetVehiclePos(j,cx,cy,cz); if( floatsqroot( floatpower(px-cx,2.0) + floatpower(py-cy,2.0) + floatpower(pz-cz,2.0)) < 3.0) { GetPlayerKeys(i, lKeys, Mike1, Mike2); if (lKeys & KEY_SECONDARY_ATTACK) { PutPlayerInVehicle(i, j, 0); } } } } } } }