26.03.2016, 12:47
how to make a simple command to exit from a rc car ?
if(!strcmp(cmdtext,"/exitfromrccar",true))
{
RemovePlayerFromVehicle(playerid);
return 1;
}
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:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
SetPlayerPos(playerid, x, y, z + 2.5);
return 1;
}