Dynamic Vehicle [Rent]
#1

Hey guys, im working on my Roleplay Gamemode from scratch and i thought this would be sorta unique. I want to make a rent system, which is dynamic. So say someone owns the rent car shop, they can use a simple cmd like /setrentcar and that car would be a rentable car. How would i go about making something like this?

Thanks in advance.
Reply
#2

pawn Код:
if(strcmp(cmd,"/setrentalcar",true)==0)//xkniives
  {
IsRentalVehicle[GetPlayerVehicleID(playerid)] = 1;
return 1;
}
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid)
{
 if(IsRentalVehicle[vehicleid] == 1)
{
///do something here
}
}

Don't copy and paste. I'm just giving you an idea of what you can do.
Reply
#3

Thanks for the idea, i think i got an idea on how to do this.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)