Citat: Farkias poslato Novembar 30, 2017, 11:20:35 PRE PODNE
De mi samo postavi i tu komandu /amotor
@Farkias evo /amotor
[pawn]YCMD:amotor(playerid, params[],help)
{
#pragma unused help
if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"PG: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"[PG:RP] "SIVA"Morate biti na Admin & GameMaster duznosti!");
if(AdminVozilo[playerid] == -1)
{
vozilo1 = CreateVehicle(522,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 Motor.");
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 Motor.");
}
}
else return SCM(playerid,-1,""ZUTA"[PG:RP] "SIVA"Samo Admini & GameMasteri.");
return 1;
}[/pawn]
A evo druga(/avozilo gde mi baca error)
[pawn]YCMD:avozilo(playerid, params[],help)
{
#pragma unused help
if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"PG: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"[PG:RP] "SIVA"Morate biti na Admin & GameMaster duznosti!");
if(AdminVozilo[playerid] == -1)
{
vozilo2 = CreateVehicle(560,Pos[0],Pos[1],Pos[2],Pos[3],random(1),random(1),500);
PutPlayerInVehicle(playerid,vozilo2,0);
AdminVozilo[playerid] = vozilo2;
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 Motor.");
}
}
else return SCM(playerid,-1,""ZUTA"[PG:RP] "SIVA"Samo Admini & GameMasteri.");
return 1;
}[/pawn]