Započeo Mauricije
•17. Jan. 2013.• ZaključanoDetain komanda
244
pregleda
3
postova
Underboss
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
594
Postovi:
45
Teme:
Pridružio se:Jan. 2012
17. Jan. 2013.
Skripta koju koristim:zGaming Edit
Detaljan opis problema:Ovako kod komande Detain napisem /detain 2(2 ili 3) i pise mi ovo: -
%s grabs %s from their cuffs and throws him inside the SAPD cruiser.
Ali mi ga ne ubaci u Auto.
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
Detaljan opis problema:Ovako kod komande Detain napisem /detain 2(2 ili 3) i pise mi ovo: -
%s grabs %s from their cuffs and throws him inside the SAPD cruiser.
Ali mi ga ne ubaci u Auto.
Dio skripte:
CMD:detain(playerid, params[])
{
new playerb, seatid, string;
if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "Morate se logirati prije koristenja bilo koje komande!");
if(!IsACop(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You are not an SAPD Oficer.");
if(sscanf(params, "ui", playerb, seatid)) return SendClientMessage(playerid, COLOR_WHITE, "Koristi: /detain ");
if(!IsPlayerLoggedIn(playerb)) return SendClientMessage(playerid, COLOR_GREY, "Krivi ID!");
if(!IsPlayerNearPlayer(playerid, playerb, 2)) return SendClientMessage(playerid, COLOR_GREY, "You can't detain someone from this disatance.");
if(!IsPlayerCuffed(playerb)) return SendClientMessage(playerid, COLOR_GREY, "Player is not cuffed.");
if(seatid < 2 || seatid > 3) return SendClientMessage(playerid, COLOR_GREY, "You can only detain people in seats 2 and 3.");
PutPlayerInVehicle(playerb, LastCar, seatid);
format(string, sizeof(string), "* %s grabs %s from their cuffs and throws him inside the SAPD cruiser.", RPN(playerid), RPN(playerb));
SendNearbyMessage(playerid, 15, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
return 1;
}Neke slike/video za lakse dobivanje pomoci(neobavezno):
Forum Don
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
7,407
Postovi:
93
Teme:
Pridružio se:Nov. 2011
17. Jan. 2013.
CMD:detain(playerid, params[])
{
new playerb, seatid, string;
if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "Morate se logirati prije koristenja bilo koje komande!");
if(!IsACop(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You are not an SAPD Oficer.");
if(sscanf(params, "ui", playerb, seatid)) return SendClientMessage(playerid, COLOR_WHITE, "Koristi: /detain ");
if(!IsPlayerLoggedIn(playerb)) return SendClientMessage(playerid, COLOR_GREY, "Krivi ID!");
if(!IsPlayerNearPlayer(playerid, playerb, 2)) return SendClientMessage(playerid, COLOR_GREY, "You can't detain someone from this disatance.");
if(!IsPlayerCuffed(playerb)) return SendClientMessage(playerid, COLOR_GREY, "Player is not cuffed.");
if(seatid < 2 || seatid > 3) return SendClientMessage(playerid, COLOR_GREY, "You can only detain people in seats 2 and 3.");
PutPlayerInVehicle(playerb, LastCar, seatid);
format(string, sizeof(string), "* %s grabs %s from their cuffs and throws him inside the SAPD cruiser.", RPN(playerid), RPN(playerb));
SendNearbyMessage(playerid, 15, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
PutPlayerInVehicle(playerb, GetPlayerVehicleID(playerid), seatid);
return 1;
}
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava