Command !
#1

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 !
Reply
#2

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;
}
Reply
#3

There is no other way except zcmd ?
Reply
#4

Quote:
Originally Posted by dorperez
Посмотреть сообщение
There is no other way except zcmd ?
ZCMD isn't required.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)