Jump to content

[GF]Cum creezi masina personalizata CEL MAI USOR MOD!


CrunK

Recommended Posts

Tutorial Created By CokeJR

Deci am vazut ca mai este un tutorial dar acesta este Mult mai simplu decat acela!

Pasul 1:

Te duci in joc spawnezi masina te duci unde vrei sa tio spawneze dai /save ==>> te duci unde ai instalat Gta ==>> savedposition Ex: AddStaticVehicle(coordonatele ); // numele cui o faci Si o bagi in GM!

Pasul 2:

Te duci in GM si bagi asta

if(newcar == id de la MASINA)

{

            new sendername[MAX_PLAYER_NAME];

            GetPlayerName(playerid, sendername, sizeof(sendername));

    if(strcmp(sendername," Numele jucatorului caruia o faci!",true))

{

  SendClientMessage(playerid,COLOR_GREY,"  You do not have the keys of this car !");

              RemovePlayerFromVehicle(playerid);

            }

}

Sper ca va ajutat!

Link to comment
Share on other sites

  • 5 months later...

if(newcar == id de la MASINA)

de unde aflu id-ul masinii?

Ca sa faci o masina personalizata fara id, ci cu nume pui:

- sus in script:

new NumeMasina;
- sub OnGameModeInit:
NumeMasina = AddStaticVehicle(parametrii);
- sub OnPlayerUpdate(playerid) - nu stiu sigur daca aici se pune ;D
if(GetPlayerVehicleID(playerid) == NumeMasina)
{
	new sendername[MAX_PLAYER_NAME];
	GetPlayerName(playerid, sendername, sizeof(sendername));
	if(strcmp(sendername," Numele jucatorului caruia o faci!",true))
	{
		SendClientMessage(playerid,COLOR_GREY,"   You do not have the keys of this car !");
		RemovePlayerFromVehicle(playerid);
	}
}


Deci am vazut ca mai este un tutorial dar acesta este Mult mai simplu decat acela! Pasul 1: Te duci in joc spawnezi masina te duci unde vrei sa tio spawneze dai /save ==>> te duci unde ai instalat Gta ==>> savedposition Ex: AddStaticVehicle(coordonatele ); // numele cui o faci Si o bagi in GM! Pasul 2: Te duci in GM si bagi asta if(newcar == id de la MASINA) {             new sendername[MAX_PLAYER_NAME];             GetPlayerName(playerid, sendername, sizeof(sendername));     if(strcmp(sendername," Numele jucatorului caruia o faci!",true)) {   SendClientMessage(playerid,COLOR_GREY,"  You do not have the keys of this car !");               RemovePlayerFromVehicle(playerid);             } } Sper ca va ajutat!
n-ai spus unde se pune:
if(newcar == id de la MASINA)
		{

            new sendername[MAX_PLAYER_NAME];
            GetPlayerName(playerid, sendername, sizeof(sendername));
		    if(strcmp(sendername," [color=red]Numele jucatorului caruia o faci![/color]",true))
			{
			  SendClientMessage(playerid,COLOR_GREY,"   You do not have the keys of this car !");
              RemovePlayerFromVehicle(playerid);
            }
		}

;), ai copiat din GM asta cred :P

Link to comment
Share on other sites

Pasul 2:

Te duci in GM si bagi asta

if(newcar == id de la MASINA)

{

            new sendername[MAX_PLAYER_NAME];

            GetPlayerName(playerid, sendername, sizeof(sendername));

    if(strcmp(sendername," Numele jucatorului caruia o faci!",true))

{

  SendClientMessage(playerid,COLOR_GREY,"  You do not have the keys of this car !");

              RemovePlayerFromVehicle(playerid);

            }

}

Sper ca va ajutat!

bn bn... intru in gm dar la ce linie OnPlayerStateChange ?

hx2mmd.gif
Link to comment
Share on other sites

nu merge sa compilez modu dupa ce bag acea masina personala

imi da o eroare la newcar.uitati eroarea de mi-o da

C:\Documents and Settings\Administrator\Desktop\servar\gamemodes\ad.pwn(7122) : error 017: undefined symbol "newcar"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

Link to comment
Share on other sites

nu merge sa compilez modu dupa ce bag acea masina personala

imi da o eroare la newcar.uitati eroarea de mi-o da

C:\Documents and Settings\Administrator\Desktop\servar\gamemodes\ad.pwn(7122) : error 017: undefined symbol "newcar"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
new newcar;

Link to comment
Share on other sites

am bagat aia si acu imi da warninguri

C:\Documents and Settings\Administrator\Desktop\servar\gamemodes\ad.pwn(7240) : warning 219: local variable "newcar" shadows a variable at a preceding level
C:\Documents and Settings\Administrator\Desktop\servar\gamemodes\ad.pwn(8121) : warning 219: local variable "newcar" shadows a variable at a preceding level
C:\Documents and Settings\Administrator\Desktop\servar\gamemodes\ad.pwn(8664) : warning 219: local variable "newcar" shadows a variable at a preceding level
C:\Documents and Settings\Administrator\Desktop\servar\gamemodes\ad.pwn(30535) : warning 219: local variable "newcar" shadows a variable at a preceding level
C:\Documents and Settings\Administrator\Desktop\servar\gamemodes\ad.pwn(35234) : warning 219: local variable "newcar" shadows a variable at a preceding level
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase

Header size:           8608 bytes
Code size:          1775428 bytes
Data size:          9197916 bytes
Stack/heap size:      16384 bytes; estimated max. usage=4123 cells (16492 bytes)
Total requirements:10998336 bytes

5 Warnings.

Link to comment
Share on other sites

adica cum sa nu o fac globala?

lasami u iar tutorialu cu tot ce tr sa pun  k sa mearga pls

in loc de:

if(newcar == id de la MASINA)
      {

            new sendername[MAX_PLAYER_NAME];
            GetPlayerName(playerid, sendername, sizeof(sendername));
          if(strcmp(sendername," Numele jucatorului caruia o faci!",true))
         {
           SendClientMessage(playerid,COLOR_GREY,"   You do not have the keys of this car !");
              RemovePlayerFromVehicle(playerid);
            }
      }
pui la OnPlayerUpdate asta:
if(GetPlayerVehicleID(playerid) == id de la MASINA)
      {

            new sendername[MAX_PLAYER_NAME];
            GetPlayerName(playerid, sendername, sizeof(sendername));
          if(strcmp(sendername," Numele jucatorului caruia o faci!",true))
         {
           SendClientMessage(playerid,COLOR_GREY,"   You do not have the keys of this car !");
              RemovePlayerFromVehicle(playerid);
            }
      }

Link to comment
Share on other sites

Mda am incercat si imi da aceste erori :|

C:\Documents and Settings\Gaby\Desktop\ShadowS GodFather\gamemodes\blodZ.pwn(2967) : warning 219: local variable "sendername" shadows a variable at a preceding level

C:\Documents and Settings\Gaby\Desktop\ShadowS GodFather\gamemodes\blodZ.pwn(5025) : warning 219: local variable "newcar" shadows a variable at a preceding level

C:\Documents and Settings\Gaby\Desktop\ShadowS GodFather\gamemodes\blodZ.pwn(5538) : warning 219: local variable "newcar" shadows a variable at a preceding level

C:\Documents and Settings\Gaby\Desktop\ShadowS GodFather\gamemodes\blodZ.pwn(6987) : warning 219: local variable "newcar" shadows a variable at a preceding level

C:\Documents and Settings\Gaby\Desktop\ShadowS GodFather\gamemodes\blodZ.pwn(10997) : error 010: invalid function or declaration

C:\Documents and Settings\Gaby\Desktop\ShadowS GodFather\gamemodes\blodZ.pwn(11001) : error 021: symbol already defined: "GetPlayerName"

C:\Documents and Settings\Gaby\Desktop\ShadowS GodFather\gamemodes\blodZ.pwn(11002) : error 010: invalid function or declaration

C:\Documents and Settings\Gaby\Desktop\ShadowS GodFather\gamemodes\blodZ.pwn(11667) : warning 219: local variable "sendername" shadows a variable at a preceding level

C:\Documents and Settings\Gaby\Desktop\ShadowS GodFather\gamemodes\blodZ.pwn(35437) : warning 219: local variable "newcar" shadows a variable at a preceding level

C:\Documents and Settings\Gaby\Desktop\ShadowS GodFather\gamemodes\blodZ.pwn(38256) : warning 219: local variable "sendername" shadows a variable at a preceding level

C:\Documents and Settings\Gaby\Desktop\ShadowS GodFather\gamemodes\blodZ.pwn(39725) : warning 219: local variable "sendername" shadows a variable at a preceding level

C:\Documents and Settings\Gaby\Desktop\ShadowS GodFather\gamemodes\blodZ.pwn(39788) : warning 219: local variable "sendername" shadows a variable at a preceding level

C:\Documents and Settings\Gaby\Desktop\ShadowS GodFather\gamemodes\blodZ.pwn(39938) : warning 203: symbol is never used: "newcar"

C:\Documents and Settings\Gaby\Desktop\ShadowS GodFather\gamemodes\blodZ.pwn(39938) : warning 203: symbol is never used: "sendername"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

3 Errors.

Link to comment
Share on other sites

  • 2 weeks later...

mie imi da erorile astea:

C:\Users\Teo\Desktop\Extream-Rules RolePlay\gamemodes\E-Rules.pwn(9613) : warning 217: loose indentation
C:\Users\Teo\Desktop\Extream-Rules RolePlay\gamemodes\E-Rules.pwn(9613) : error 017: undefined symbol "newcar"
C:\Users\Teo\Desktop\Extream-Rules RolePlay\gamemodes\E-Rules.pwn(9617) : error 017: undefined symbol "playerid"
C:\Users\Teo\Desktop\Extream-Rules RolePlay\gamemodes\E-Rules.pwn(9618) : warning 217: loose indentation
C:\Users\Teo\Desktop\Extream-Rules RolePlay\gamemodes\E-Rules.pwn(9620) : error 017: undefined symbol "playerid"
C:\Users\Teo\Desktop\Extream-Rules RolePlay\gamemodes\E-Rules.pwn(9621) : warning 217: loose indentation
C:\Users\Teo\Desktop\Extream-Rules RolePlay\gamemodes\E-Rules.pwn(9621) : error 017: undefined symbol "playerid"

15504_skrillex.jpg
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 TheGodfather
      Salut, masinile se respawneaza la un interval de timp daca cineva nu e in ele. Am pus peste tot unde e SetVehicleToRespawn() un mesaj unic, ca sa imi dau seama unde e problema. Dar cand masina se respawneaza nu apare niciun mesaj, tin sa mentionez ca mesajul e pus cu SendClientMessageToAll. Deci nu exista sansa sa se fi trimis si sa nu il fi vazut. Am gamemode hpq123 bhood.
    • By AlexCelTare
      Salut imi poate spune cineva cum fac atunci cand un player intra intr-un checkpoint, sa ii dea alt checkpoint si tot asa?
       
      Eu am facut asa:
      Dar habar nu am cum sa fac mai multe checkpointuri dupa ce intra intr-unul
       
      new bool:onCheck[MAX_PLAYERS];
      public OnPlayerCommandText(playerid, cmdtext[])
          if (strcmp("/startmission", cmdtext, true, 10) == 0)
          {
              if(IsPlayerInRangeOfPoint(playerid, 3.0, 2333.1101,-1072.5065,1049.0234))
              {
              SetPlayerCheckpoint(playerid, -2130.9629,-2061.5767,63.3069, 3.0);
              onCheck[playerid] = true;
              }
              return 1;
          }
       
      public OnPlayerEnterCheckpoint(playerid)
      {
          if(onCheck[playerid]) // if it's true
          {
              GivePlayerMoney(playerid, 10);
              GameTextForPlayer(playerid,"~g~Mission 1 : Discover Dealership Completed!\nAnd Got +10$",3000,4);
              DisablePlayerCheckpoint(playerid);
              onCheck[playerid] = false;
          }
    • By CenzoR
      Salut! Am problema cand intru in masina persoanala nu imi arata detalile acesteia, de ex cate zile are, km, culorile.
      Scriptul este deja pus in gamemode (nu este anulat)
      Ma poate ajuta cineva?
    • By Lwka
      Hey! Am si eu nevoie de ajutor la comanda /bonus


      Cum pot acorda un vehicul temporar?
    • By Camătaru1
      Salut, astazi va prezint gamemode-ul red-earth.ro e un Game-Mode (hpq123)
      Prezentarea: 
      Adaugat system de /svf la toate factiunele.
      Facut un panel 100% compatibil cu Game-Mode.
      Adaugat convertor.
      Adaugat system de container.
      Rezolvate toate bugurile.
      Facut un alt ds.
      Rezolvata problema la tick-uri.
      Rescris systemul de crates.
      (Cel mai bun game mode).
       
       
      𝙙𝙤𝙬𝙣𝙡𝙤𝙖𝙙 𝙂𝙖𝙢𝙚-𝙈𝙤𝙙𝙚 -- https://www.mediafire.com/file/y0k0lnzi66vh1k4/Game-Mode+b-hood+++panel.rar/file
      virustotal -- https://www.virustotal.com/gui/file-analysis/OTQ2OWQ4YmNhMGYyZjU1MTgyYTUyZWU0YTFhYTg4MTE6MTYxNzQ1NjE3OQ==/detection
  • 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.