Samp PAWNO tutorial 7: /teleport command (part 1)

Телепорт автомобиль ASWELL: if (strcmp (cmdtext, “Teleport”, true) == 0) {new CatherID = getPlayReveHicleId (playerId); Новое состояние = GetPlayerState (PlayerId); if (isPlayerInanyVehicle (playerId) && state == player_state_driver) {linkvehiCletoinWerve (catherid, ** Interior **); SetPlayerInterior (PlayerId, ** Interior **); return SetVehiclePos (CatherId, ** Co-Words **); } SetPlayerPos (PlayerId, ** co-ords **); SetPlayerInterior (PlayerId, ** Interior **); возврат 1; } Этот учебник просто показывает нам, как мы делаем команду, в части 2 я объясню, когда координаты мы используем из сохраненных (/сохранения) координат. А в другом учебном пособии я буду терять то, как сделать значок, и когда вы входите в него, вы телепортируете (Tagstotranslate) Samp
source
setplayerinterrior is not needed right?(mostly)
Ye, it is needed, all the time/
Yes it is, If your inside a interior, and teleport outside, it needs to change Interior..Other wise it will be bugged.
if u still need help, ye i will…. wat u need?
can you make one about teleporting while in a car
what is this error:
error 010: invalid function or declaration
Now i can teleport just i dont know how to teleport car as well beacause your code doesnt work
whats wrong
??
working now
but inetior stays blue for me
guys try my server itz stunting+freeroam join now
NOW HIRING ADMIN (72.144.45.147:7777)
i use MTA map editor for this.. ill make a video for it soon 🙂
yes mta nightly is the best don't use race
how to setup to be team death mach and how to make some jump to be like stunt server and how to i make on car some drift code to my car can driifttt
why my sa-mp dont work GetPlayerVehicleID(playerid); ?
function heading differs from prototype. Any help guys?
I dont see the tutorial about marker/icon to teleport to oneplace to another ?
how to set a player position
@Playboy230295 I'm assuming that you already have the "blah.MAP" file? you must convert this to .pwn code and then you put the code underneath the callback "ongamemodeinit"…
Ask on sa-mp forums for the link to the .map > .pwn file converter,.
Thanks!
what do I write or is the interior in the code ?
How i can made a tleport? With an House Icon in game. Go to the Icon and automatical in the interrior.
Is the pawno scripting language similar to Lua or is it Lua?
can you pls pls pls make a /car command
Nice vid.It helped.But litlle advice:You wasted a lots of type writing a reason why are you makig this vid.No one doesn't care about your reason!TNX ANYWAY
QUESTION !!: WHEN I EDIT A GAMEMODE (E.G FREEROAM) AND IM DONE EDITING , HOW DO REPACE IT SO THE NEW THINGS CAN BE IN MY SERVER? HELP PLZ REPLY ASAP!!!!!!!!!!!!!!!!!!!!!!!11
@rokysakorn go to My Documents> GTA San Andreas User Files > SAMP and its the savedpositions.txt file..
Please subscribe to my new channel for more help though, "ComputerNerdLessons" im making all my new videos on there and there is a video to go to my blog on there aswell.. PM any help you need on that channel for a quick response!
@rafizadeh123 Place the script into "Gamemodes" folder and replace the name in the server.cfg so it runs the script you want..
Please subscribe to my new channel for more help though, "ComputerNerdLessons" im making all my new videos on there and there is a video to go to my blog on there aswell.. PM any help you need on that channel for a quick response!
thats not good
it must be this way good made but in the description wrong 😛
if(strcmp(cmdtext,"/teleport",true)==0)
{
new vehicleid = GetPlayerVehicleID(playerid);
new State = GetPlayerState(playerid);
if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER)
{
LinkVehicleToInterior(vehicleid,**Interior**);
SetPlayerInterior(playerid,**Interior**);
return SetVehiclePos(vehicleid,**Co-ords**);
}
SetPlayerPos(playerid,**Co-ords**);
SetPlayerInterior(playerid,**Interior**);
return 1;
}
Need help for mappings i am mapper, ask me if you want xD
yo ty vm i've success
JOIN MY SERVER I MIGHT MAKE YOU ADMINISTRATOR 192.168.1.3:7777
i now whats wron u must use this
COMMAND:area69 (playerid, params[])
{
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid, 192.294, 1931.26, 17.64);
}
return 1;
}
it works but there is 1 thing not good can someone help me ?
oops im using zcmd command
no use for me 🙁