[Pomoc]/avozilo

Započeo Wilco, Maj 08, 2014, 18:35:08 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:Underpoint
Detaljan opis problema:Pa ne znam kako postaviti da mi se umjesto Huntley-a npr tpa Infernus.
Dio skripte:YCMD:avozilo(playerid, params[],help)
{
    #pragma unused help
    if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"UP:RP | "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
new Float:Pos[4];
GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
if(PlayerInfo[playerid][pGM] >= 1 || PlayerInfo[playerid][pAdmin] >= 1)
{
    if(AdminDuty[playerid] == 0 && GMDuty[playerid] == 0) return SCM(playerid,-1,""CRVENA"[UP:RP] "SIVA"Morate biti na Admin & GameMaster duznosti!");
if(AdminVozilo[playerid] == -1)
{
vozilo1 = CreateVehicle(579,Pos[0],Pos[1],Pos[2],Pos[3],random(1),random(1),500);
PutPlayerInVehicle(playerid,vozilo1,0);
AdminVozilo[playerid] = vozilo1;
SCM(playerid,-1,"INFO | "ZUTA"Stvorili ste Admin & GM Vozilo.");
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 if(AdminVozilo[playerid] != -1)
{
DestroyVehicle(AdminVozilo[playerid]);
AdminVozilo[playerid] = -1;
SCM(playerid,-1,"INFO | "ZUTA"Unistili ste Admin & GM Vozilo.");
}
}
else return SCM(playerid,-1,""ZUTA"[UP:RP] "SIVA"Samo Admini & GameMasteri.");
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):
--------Moj youtube kanal(klik na sliku)--------

CreateVehicle(Tu ide model vozila,Pos[0],Pos[1],Pos[2],Pos[3],random(1),random(1),500);
69

Citat: [UG]C++ poslato Maj 08, 2014, 18:36:01 POSLE PODNE
CreateVehicle(Tu ide model vozila,Pos[0],Pos[1],Pos[2],Pos[3],random(1),random(1),500);

Radi,hvala puno.LOCK.
--------Moj youtube kanal(klik na sliku)--------