Detain komanda

Započeo Mauricije
17. Jan. 2013. Zaključano
231
pregleda
3
postova
Taco
5
Underboss
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:
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):
Blaeks_Biofor
5
Forum Don
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;
}
Taco
5
Underboss
17. Jan. 2013.
Hvala <3

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha