30.09.2011, 16:39
I'm trying to script a garage , i know how to do everything except TP'ing the player while hes inside the vehicle when he uses the CMD , i mean is there a script to TP the player and his vehicle while hes driving it?
if(strcmp(cmdtext, "/PUTYOURCOMMANDHERE", true) == 0){
{if(State!=PLAYER_STATE_DRIVER)
{SetPlayerPos(playerid,POSITIONOFYOURGARAGEINTERIOR);}
else if(IsPlayerInVehicle(playerid, cartype) == 1)
{SetVehiclePos(cartype,POSITIONOFYOURGARAGEINTERIOR);
SetVehicleZAngle(cartype,SETYOURVEHICLE'SANGELHERE);}
else
{SetPlayerPos(playerid,POSITIONOFYOURGARAGEINTERIOR);}
SendClientMessage(playerid, 0xFFFF00AA,"You have teleported to GARAGE.");}
return 1;}