Vehicle ID problem
#21

Where are you teleporting to? So they do a command and only the player goes to the location, or does the vehicle disappear?
Reply
#22

pawn Код:
if(!strcmp(cmdtext,"/Command",true)){
    new vehicleid=GetPlayerVehicleID(playerid);
    if(vehicleid){//The same as "If the player is in a vehicle"
        SetVehiclePos(vehicleid,x,y,z);
        //When a player in a vehicle teleports
    }
    else{
        SetPlayerPos(playerid,x,y,z);
        //When a player teleports
    }
    return 1;
}
Reply
#23

ahh thanks bro!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)