Quote:
Originally Posted by Pooh7
I've never tried working with object materials, but as regards vehicles, I think you're looking for something like this:
pawn Код:
CMD:givevehicle(const playerid, const params[]) { new id, model, vehid, Float:pos[4] ; if(sscanf(params, "ui", id, model)) return SendClientMessage(playerid, -1, "USAGE: /givevehicle <playerid> <modelid>"); if(!IsPlayerConnected(id)) return SendClientMessage(playerid, -1, "Invalid playerid."); if(model < 400 || model > 611) return SendClientMessage(playerid, -1, "Invalid modelid.");
GetPlayerPos(id, pos[0], pos[1], pos[2]); GetPlayerFacingAngle(id, pos[3]); vehid = CreateVehicle(model, pos[0], pos[1], pos[2], pos[3], -1, -1, 1000); PutPlayerInVehicle(id, vehid, 0);
return 1; }
|
Its nice man but I really wanna make a dealership system that /buycar show u dialog of cars u can choose :
"Normal , Sports , LowRiders , Bikes" And I dont know how make it all after u press on Sports for example thats show u Infernus , Sultan to choose with the price...