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

35
1741760013_hqdefault.jpg



Телепорт автомобиль 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

About The Author

35 комментариев для “Samp PAWNO tutorial 7: /teleport command (part 1)

  1. @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,.

  2. @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!

  3. @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!

  4. 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;
    }

  5. 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 ?

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *