Citat: нÑÏ...Ñ•Ñ,αиσνιÏ, poslato April 12, 2017, 21:06:07 POSLE PODNE
De posalji kod public OnPlayerModelSelection
[pawn]public OnPlayerModelSelection(playerid, response, listid, modelid)
{
if(listid == vehlist)
{
if(response)
{
new Float:XXX[4];
GetPlayerPos(playerid,XXX[0],XXX[1],XXX[2]);
Info(playerid, "Uspesno ste stvorili A/S vozilo!");
voziloa = CreateVehicle(modelid,XXX[0],XXX[1],XXX[2],XXX[3],random(20),random(20),1000);
PutPlayerInVehicle(playerid,voziloa,0);
AdminVozilo[playerid] = voziloa;
new string[500];
format(string, sizeof(string), ""SRWBOJA"( A/S VOZILO )\n"BELA"- %s -", GetName(playerid));
AHText3D = Create3DTextLabel(string, 0x33CCFFAA, 0.0, 0.0, 0.0, 20.0, 0, 0);
Attach3DTextLabelToVehicle(AHText3D, voziloa, 0.0, 0.0, 0.0);
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(GetPlayerVehicleID(playerid), 1, lights, alarm, doors, bonnet, boot, objective);
}
else
Info(playerid, "Odustali ste od spawnanja A/S Vozila");
return 1;
}
return 1;
}[/pawn]