Posts: 409
Threads: 101
Joined: Jul 2009
Reputation:
0
Hey,
I want to do that when someone type /rentcar he can type /engine but if he doesn't type /rentcar so he can't type /engine.
Tnx guys !
Posts: 3,004
Threads: 12
Joined: May 2011
you need zcmd for this:
pawn Код:
new RentedCar[MAX_PLAYERS];
CMD:rentcar(playerid,params[])
{
if(RentedCar[playerid] == 0)
{
RentedCar[playerid] == 1;
SendClientMessage(playerid,0x334455,"You have rented this car,you can /engine now");
}else{
SendClientMessage(playerid,0x334455,"You already rented this car!");
return 1;
}
CMD:engine(playerid,params[])
{
if(RentedCar[playerid] == 0)
{
SendClientMessage(playerid, 0x334455,"You have to rent the car first!");
}else{
// Script (if the player rented the car)
}
return 1;
}
Posts: 409
Threads: 101
Joined: Jul 2009
Reputation:
0
There is no other way except zcmd ?