Jump to content

Cum sa adaugi un vehicul pe nume !!


Sice15

Recommended Posts

Faceti exact ca aici

new admincar;

public OnGameModeInit()

{

admincar = AddStaticVehicle(ID,x,y,z,233.9429,1,62); // Vehicul

public OnPlayerStateChange(playerid, newstate, oldstate)

{

  new PlayerName[24];

  GetPlayerName(playerid, PlayerName, sizeof(PlayerName));

  if(newstate == PLAYER_STATE_DRIVER)

  {

      new Vehicle = GetPlayerVehicleID(playerid);

    if(Vehicle == admincar)

      {

        if(strcmp(PlayerName,"Numele playerului",true))

        {

            RemovePlayerFromVehicle(playerid);

            SendClientMessage(playerid, 0x33AA33AA, "Imi pare rau , Aceasta masina este a lui SiCE");

        }

      }

  }

  return 1;

}

<a href='http://www.yhcbux.com/?ref=sice'><img src='http://www.yhcbux.com/images/banner1.gif'></a>

Link to comment
Share on other sites

  • 2 weeks later...

nice...dar puteti incerca niste car system de pe sa-mp.com.e un programel si face totul mult mai repede si mai sigur

Proiecte:

Hospital Interior-0%(neinceput)

Limo Interior-0%(inceput)

Bank Interior-0%(neinceput)

Bus Interior-0%(inceput)

Plane Interior-0%(neinceput)

Train Interior-0%(neinceput)

Boat Interior-95%(terminat,mici retusuri)

Mini-Scripturi care au fost publicate:

GPS System: http://forum.sa-mp.ro/filter-scripts-and-gamemodes/%28fs%29-gps-system/

Link to comment
Share on other sites

am incercat 10 erori dar.. mai bn e cu FS care lam zis

--------------------------------------

|Te cam bate limba roamana la greu    |

--------------------------------------

____________________________________________________________________________________________________________________________________

DOWNLOAD : Luati un CarOwner , pentru incepatorii care nu se descurca cu acest tutorial -> Apasa aici <-

TUTORIAL : Tot ce aveti de facut este sa va logati cu parola rcon (/rcon login [parola]) apoi scrieti /newbuycar [iDmasina] [culoare1][culoare2][pretul]

Link to comment
Share on other sites

  • 2 weeks later...

C:\Users\HP\Desktop\tutto\programmi\Gta\server\Clan Drift\gamemodes\ClanDrift.pwn(938) : warning 217: loose indentation

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Warning.

---------------------------------------------------------------------------------------------------------------------------

    if(Vehicle == admincar)    [LINIA 938]

---------------------------------------------------------------------------------------------------------------------------

new admincar;

public OnGameModeInit()

{

    admincar = AddStaticVehicle(1,1,2,3,233.9429,1,62); // Vehicul

---------------------------------------------------------------------------------------------------------------------------

public OnPlayerStateChange(playerid, newstate, oldstate)

{

  new PlayerName[24];

  GetPlayerName(playerid, PlayerName, sizeof(PlayerName));

  if(newstate == PLAYER_STATE_DRIVER)

  {

      new Vehicle = GetPlayerVehicleID(playerid);

    if(Vehicle == admincar)

      {

        if(strcmp(PlayerName,"[CD]Samy_Romafia",true))

        {

            RemovePlayerFromVehicle(playerid);

            SendClientMessage(playerid, 0x33AA33AA, "alla");

        }

      }

  }

  return 1;

}

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-

Cum rezolv?

senzaolo1xv.png

www.dsrclan.forumfree.it

Link to comment
Share on other sites

Si acum?  :o

C:\Users\HP\Desktop\tutto\programmi\Gta\server\Clan Drift\gamemodes\ClanDrift.pwn(32) : warning 202: number of arguments does not match definition

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Warning.

AddStaticVehicle(562,-2390.1931,-589.1910,132.1579,216.3570,158,158); //

Ajutor pls

senzaolo1xv.png

www.dsrclan.forumfree.it

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Similar Content

    • By salexm93
      Salut ,pot adauga cod la apelarea functiilor native ? De ex la CreatePickup am nevoie sa salvez date pe care sa le accesez la OnPlayerPickUpPickup(playerid, pickupid)
    • By Tefyuu
      Salut , in gamemode ul burned by waller , cum adaug pet in shop ? am incercat eu ceva dar nu a aparut si am zis sa va intreb
    • By Xtrem_Maddox
      Salut. O să explic cât se poate de scurt.
      Mi-am modelat singur o casă în Blender. Am exportat modelul, l-am adăugat în .pwn, e ready to use. Problema mea este următoarea: vreau să amplasez casa undeva, nu contează unde, doar că trebuie să mappez casa, adică să o pun eu cum trebuie. Asta înseamnă că trebuie s-o adaug într-un map editor, ca să o așez așa cum vreau. Cum fac lucrul acesta? Mai exact: cum adaug un obiect custom într-un map editor? JernejL's Map Editor nu îți dă voie să adaugi propriile tale obiecte, nu? Dar Fusez'?
      Mulțumesc.
    • By Sebi wepos
      Cum adaug si eu zcmd in gamemode meu?
      adk stiu sa pun in include zcmd 
      dar nush cum sa pun include si alea sa mearga ca daca fac cum cred eu ca e imi da o eroare 
    • By Penelope
      Salutare. Am luat un panel de pe net ca sa ma pot juca pe el si sa fac schimbari, si am observat ca daca ai . la nume (Penelope. de exemplu) iti zice ca nu iti recunoaste profilul. Ma puteti ajuta va rog ?
      Script-ul: 
      </div><div class="main-content"> <?php if(!defined('panel')) die('Nope.'); if(!isset($_SESSION['user']) && !isset(Config::$_url[1])) echo '<meta http-equiv="refresh" content="0;URL=\''.Config::$_PAGE_URL.'login\'/>'; if(isset(Config::$_url[1])) $user = (int)Config::$_url[1]; if(!isset(Config::$_url[1])) echo '<meta http-equiv="refresh" content="0;URL=\''.Config::$_PAGE_URL.'\'/>'; $q = Config::$g_con->prepare('SELECT * FROM `users` WHERE `name` = ?'); $q->execute(array(Config::$_url[1])); if(!$q->rowCount()) { echo ' <title>This user doesn\'t exist</title> <div class="breadcrumbs" id="breadcrumbs"> <ul class="breadcrumb"> <li> <i class="ace-icon fa fa-home home-icon"></i> <a href="<?php echo Config::$_PAGE_URL; ?>">Home</a> </li> <li class="active">This user doesn\'t exist</li> </ul><!-- /.breadcrumb --> <div class="nav-search" id="nav-search"> <form method="POST" action="search"> <span class="input-icon"> <input type="text" placeholder="Search ..." name="sname" id="username" type="submit" class="nav-search-input" autocomplete="on"> <i class="ace-icon fa fa-search nav-search-icon"></i> </span> </form> </div> <!-- /.nav-search --> </div> <div class="page-content"><div class="row-fluid"><div class="span12"> <div class="alert alert-danger">This user doesn\'t exist.</div>'; return; }
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.