Interior Problem
#1

Can anyone help me
I made a /enter command for a storage
but I don't know when I /enter the storage interior I can't enter with a car I don't know why
anyone can help?
Reply
#2

https://sampwiki.blast.hk/wiki/SetVehiclePos

Check this out, replace SetPlayerPos with this to tp a vehicle

If you need to tp a person into the spot when they are not in a car you would want to use something like this.

Code:
if(IsPlayerInAnyVehicle(playerid) {
    SetVehiclePos(X, Y, Z);
} else {
    SetPlayerPos(playerid, X, Y, Z);
}
Reply
#3

Thanks but I need the both of it
Like everyone can enter the storage with a car or without a car.
Reply
#4

I edited my post check it out.
Reply
#5

wcrp\interiors.pwn(172) : error 001: expected token: ")", but found "{"

pawn Code:
if(IsPlayerInAnyVehicle(playerid) {
    SetVehiclePos(X, Y, Z);
    } else {
    SetPlayerPos(playerid, X, Y, Z);
    }
Reply
#6

Needs to be
Code:
if(IsPlayerInAnyVehicle(playerid))
.
Reply
#7

This restart my server
btw I fix it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)