11.09.2018, 17:00
PHP код:
CMD:tunecar(playerid, params[]) {
if(!PlayerToPoint(10.0, playerid, 949.7930,2168.0095,10.8203)) return SCM(playerid, -1, "Nu esti la garajul de tuning");
new idd = GetPVarInt(playerid, "VehicleID");
if(CarInfo[idd][cTuningTicket] < 1) return SCM(playerid, -1, "Nu ai un tuning ticket pentru aceasta masina");
new id;
if(sscanf(params, "u", id)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: {FFFFFF}/tunecar <playerid/name>");
if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_GREY, "Acel player nu este conectat.");
if(PlayerInfo[id][pMember] != 8) return SCM(playerid, -1, "Acel player nu este un mecanic!");
if(GetDistanceBetweenPlayers(playerid,id) > 5) return SendClientMessage(playerid, COLOR_GREY, "Nu esti langa acel mecanic");
ShowPlayerDialog(id, DIALOG_TUNE2, DIALOG_STYLE_MSGBOX, "Cerere tuning", "Esti de acord sa asisti la tuningul masinii lui SMECHERU?", "Confirm", "Cancel");
idtuner[id] = playerid;
idmecanic[playerid] = id;
//ShowPlayerDialog(playerid, DIALOG_TUNE, DIALOG_STYLE_MSGBOX, "Confirma plata", "Mecanicul percepe o taxa de 50 dolari.\nEsti de acord cu plata acesteia?", "Confirm", "Cancel");
return 1;
}
PHP код:
if(CarInfo[idd][cTuningTicket] < 1) return SCM(playerid, -1, "Nu ai un tuning ticket pentru aceasta masina");