rent car
#1

Hello!

Im making rent car system but i dont understand how can i make that no one can enter car if that is already rented.

Like this

P.S this code is just fast example, hope you understand me

Код:
CMD:rentcar(playerid,params[])
{
if(!IsRented(playerid)) return scm(playerid, -1, "This car is already rented);
{
SetRented to car !!!!!!!
SCM(playerid,-1,"You have rented this car");
return 1;
}

Onplayerenterveh
if(IsRented(playerid)) 
{
removeplayerfromveh

stock IsRented
SetRented to car !!!!!!!
Reply


Messages In This Thread
rent car - by edzis84 - 10.06.2013, 19:19
Re: rent car - by Sascha - 10.06.2013, 20:07
Re: rent car - by edzis84 - 10.06.2013, 20:16
Re: rent car - by edzis84 - 10.06.2013, 22:19
Re: rent car - by Stefand - 11.06.2013, 05:11
Re: rent car - by Sascha - 11.06.2013, 09:08

Forum Jump:


Users browsing this thread: 1 Guest(s)