Garage , help me .
#1

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

pawn Code:
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;}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)