Need help with teleport!
#1

hey im new , and i dont know very well scripting , i maded command /home and it teles me to my selected place, but if i tele with car , my car gone and i tele wihtout car , . I want tele with car to not car lose
Reply
#2

Check if a player is in a vehicle.

pawn Код:
if(IsPlayerInVehicle(playerid))
{
    SetVehiclePos(GetPlayerVehicleID(playerid), x, y, z);
}
else
{
    //your code
}
Reply
#3

huh i dont get it
Reply
#4

can u make for me it , AddPlayerClass(0,435.4337,2508.1094,16.4844,84.610 8,0,0,0,0,0,0); // home i want tele home with car not alone
Reply
#5

Butch there are lots and lots of tutorial on this dont make stupid posts!
i dont like seeing all this just watch tutorial learn stuff ask usefull questions like:

Is it possible to make a gamemode changer?
This is just a question you shouldnt ask because its also a stupid question even its possible
But make good questions i made a question:

Zcmd doesnt work?

But its nice that you ask such stuff i did it too i am not mad at you here is the code

Quote:

if(strcmp("/home", cmdtext, true, 10) == 0)
{
SetPlayerPos(Here your coords etc);
SetVehiclePos(GetPlayerVehicleID(playerid), x, y, z);
}
return 1;

This code should work
Reply
#6

C:\Documents and Settings\AGS\Desktop\tele.pwn(23 : error 017: undefined symbol "x"
Reply
#7

Quote:
Originally Posted by Baumann
Посмотреть сообщение
can u make for me it , AddPlayerClass(0,435.4337,2508.1094,16.4844,84.610 8,0,0,0,0,0,0); // home i want tele home with car not alone
Make your own topic for your own question and ill answer
btw i dont realy know what your saying?
Reply
#8

Better Add in your gamemode as ZCMD
Reply
#9

how`?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)