RC car
#1

how to make a simple command to exit from a rc car ?
Reply
#2

Hi!

You can do it like this:
PHP код:
if(!strcmp(cmdtext,"/exitfromrccar",true))
{
    
RemovePlayerFromVehicle(playerid);
    return 
1;

It's a very easy version but you can edit this. Put this code into the public OnPlayerCommandText.
Reply
#3

not working :P
Reply
#4

You can just exit from rc cars by pressing "VEHICLE ENTER/EXIT" key.
If you want he vehicle to be destroyed on exit then check if the exited vehicle is an RC vehicle,if true/1 then destroy
Reply
#5

Quote:
Originally Posted by K0P
Посмотреть сообщение
You can just exit from rc cars by pressing "VEHICLE ENTER/EXIT" key.
If you want he vehicle to be destroyed on exit then check if the exited vehicle is an RC vehicle,if true/1 then destroy
not working with me when i typed enter/exit key
Reply
#6

What exactly do you want? I don't know what you want to do.
Reply
#7

PHP код:
CMD:exit(playerid,params[])
{
if(!
IsPlayerInVehicle(playerid,411)) return  SendClientMessage(playerid,COLOR_RED,"You Need To Be In A RC Car To Use This Command.");//Change 411 to your rc car id
new Float:xFloat:yFloat:z;
GetPlayerPos(playeridxyz);
SetPlayerPos(playeridxy2.5);
return 
1;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)