Untitled
public text v1 · immutableif (strcmp("/rozladuj", cmdtext, true, 10) == 0)
{
new cos;
new vehicleid = GetPlayerVehicleID(playerid);
cos = GetVehicleTrailer(vehicleid);
if(!GetVehicleTrailer(vehicleid)){
SendClientMessage(playerid,COLOR_YELLOW, "Nie masz przyczepionej naczepy!");
return 1;
}
SetVehicleToRespawn(cos);
SendClientMessage(playerid, COLOR_YELLOW, "Rozladowales towar! Nagroda - $20.000");
return 1;
}