Jump to content
  • 0

ID-uri masini


amaru

Question

7 answers to this question

Recommended Posts

astai lista cu toate masinile : http://weedarr.wikidot.com/veh

oricum, masinile spawnate cu /veh, nu au cum sa fie respawnate dupa cu comanda /rac , pentru ca nu sunt bagate in gm ( sa zic asa ) ! alea spawnate cu /veh trebuie sa dai /destroycar id ( id masina ) pentru a le elimina ( sa zicem ) !

vrei sa vb cu mine? add [email protected] pe yahoo mesenger ;)

Link to comment
Share on other sites

deci :

1)  spawneazi acea masina !

2) o pozitionezi unde vrei sa fie acea masina !

3) dai /save !

4) copiezi coordonatele !

5) cauti in gm :

addstaticvehicle
ultima linie ar trebui sa fie gen asta :
	AddStaticVehicleEx(487,2805.8423,-1623.9495,28.7398,75.2821,0,0, 60000); // 
sau
	AddStaticVehicle(487,2805.8423,-1623.9495,28.7398,75.2821,0,0, 60000); // 

6) mergi la ultima linie de genu ( de sus ) si inserezi intro noua linia datele la acea masina !

7) Compilezi !

8) Restart la server ! ( sau inchizi si redeschizi .. mai bine ) !

9) intri pe serevr, te duci la locu masini. ea va fi acolo !

10) dai /rac si vei obserca ca masina sa respawnat :D!!!

Sper ca tiam explicat cum trebuie :| !! daca nu reply ;)

vrei sa vb cu mine? add [email protected] pe yahoo mesenger ;)

Link to comment
Share on other sites

nu are cum.. ori comanda /rac nu este bun ori..

sau mai vezi ceva.. poate ai peste 500 masini ? 

	if(strcmp(cmd, "/respawnallcars", true) == 0 || strcmp(cmd, "/rac", true) == 0) //
	{
	    if(IsPlayerConnected(playerid))
	    {
	        if(PlayerInfo[playerid][pAdmin] < 1337)
			{
			    SendClientMessage(playerid, COLOR_GRAD1, "   Nu esti autorizat la aceasta comanda. Esti inca copil tu !!!");
			    return 1;
			}
			new bool:unwanted[CAR_AMOUNT];
			for(new player=0; player<MAX_PLAYERS; player++)
     		{
            	if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
     		}
			for(new car = 1; car <= 500; car++)
			{
				if(!unwanted[car]) SetVehicleToRespawn(car);
			}
			GetPlayerName(playerid, sendername, sizeof(sendername));
			format(string, sizeof(string), " Adminul %s a dat respawn la masini.", sendername);
			BroadCast(COLOR_WHITE,string);
		}
		return 1;
	}
    new currentveh;
	currentveh = GetPlayerVehicleID(playerid);
asta-i comanda /rac ! Vezi linia asta :
			for(new car = 1; car <= 500; car++)

daca ai mai multe masini de 500, modifica 500 ;) !!

vrei sa vb cu mine? add [email protected] pe yahoo mesenger ;)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.