Jump to content
  • 0

cum fac o mapa in pawno


Guest Laur

Question

Deci am facut mapa cu mta... am salvato... am facuto cod cu situ ista

http://gtamap.delux-host.com/converter/

am dat acolo Pawn code for :samp ....

si mia dat codu ista

CreateObject(1310, 2406.044678, -2266.016357, 61.370602, 0.0000, 0.0000, 0.0000);
CreateObject(3361, 2411.412354, -2278.384277, 42.745335, 0.0000, 0.0000, 45.0000);
CreateObject(3361, 2407.620117, -2282.191406, 46.355339, 0.0000, 0.0000, 45.0000);
CreateObject(8040, 2373.581055, -2309.333008, 49.217285, 0.0000, 0.0000, 45.0000);
CreateObject(18449, 2315.786865, -2363.705811, 54.357346, 0.0000, 0.0000, 45.0000);
CreateObject(18449, 2262.869385, -2415.759277, 15.115066, 0.0000, 0.0000, 45.0000);
CreateObject(18449, 2261.165527, -2417.489502, 57.871143, 0.0000, 5.1566, 44.1406);
CreateObject(18449, 2211.973633, -2465.761719, 74.371460, 0.0000, 20.6265, 45.0000);
CreateObject(18449, 2168.377686, -2510.701172, 108.038467, 0.0000, 36.9558, 46.7189);
CreateObject(1634, 2343.382568, -2336.330811, 54.773399, 348.8273, 0.0000, 315.8594);
CreateObject(1634, 2349.124023, -2330.444580, 58.648464, 10.3132, 0.0000, 315.8594);
CreateObject(18449, 2394.110352, -2286.515381, 72.269287, 0.0000, 0.0000, 45.0000);
CreateObject(1634, 2422.511475, -2257.913574, 72.885262, 353.1245, 0.0000, 314.1406);
CreateObject(1634, 2491.178223, -2227.911621, 13.563873, 7.7349, 359.1406, 268.5905);
CreateObject(1634, 2428.247803, -2252.407715, 76.165497, 1.7189, 0.0000, 313.2038);
CreateObject(1634, 2432.047119, -2248.710938, 80.644035, 29.2208, 0.8594, 315.7821);
CreateObject(1634, 2350.145996, -2336.215088, 52.823975, 320.4659, 359.1406, 315.8594);
CreateObject(1634, 2355.208252, -2331.069824, 51.774101, 331.6386, 0.0000, 315.0000);
CreateObject(1634, 2360.907227, -2325.318115, 49.473976, 310.1527, 0.0000, 315.0000);
CreateObject(1634, 2498.211426, -2228.044189, 19.065718, 18.0482, 359.1406, 268.5905);
CreateObject(8040, 2071.405029, -2611.071045, 258.330963, 0.0000, 359.1406, 45.0000);
CreateObject(18449, 2130.239502, -2551.124512, 160.508057, 0.0000, 49.8473, 46.7189);
CreateObject(18449, 2107.901123, -2574.631348, 219.969864, 0.0000, 71.3332, 46.7189);
CreateObject(3331, 2315.089355, -2654.372070, 25.017567, 0.0000, 0.0000, 270.0000);

unde il pun?? in pawno.. am dat new si mia aparut codu ista
#include <a_samp>

// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" Blank Filterscript by your name here");
	print("--------------------------------------\n");
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}

#else

main()
{
	print("\n----------------------------------");
	print(" Blank Gamemode by your name here");
	print("----------------------------------\n");
}

#endif

public OnGameModeInit()
{
	// Don't use these lines if it's a filterscript
	SetGameModeText("Blank Script");
	AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
	return 1;
}

public OnGameModeExit()
{
	return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
	return 1;
}

public OnPlayerRequestSpawn(playerid)
{
	return 1;
}

public OnPlayerConnect(playerid)
{
	return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
	return 1;
}

public OnPlayerSpawn(playerid)
{
	return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
	return 1;
}

public OnVehicleSpawn(vehicleid)
{
	return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
	return 1;
}

public OnPlayerText(playerid, text[])
{
	return 1;
}

public OnPlayerPrivmsg(playerid, recieverid, text[])
{
	return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/mycommand", cmdtext, true, 10) == 0)
	{
		// Do something here
		return 1;
	}
	return 0;
}

public OnPlayerInfoChange(playerid)
{
	return 1;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
	return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
	return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
	return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
	return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
	return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
	return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
	return 1;
}

public OnRconCommand(cmd[])
{
	return 1;
}

public OnObjectMoved(objectid)
{
	return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
	return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
	return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
	return 1;
}

public OnPlayerExitedMenu(playerid)
{
	return 1;
}

unde in codu de mai sus pun codu celalat?

Link to comment
Share on other sites

16 answers to this question

Recommended Posts

  • 0

#include <a_samp>

// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
CreateObject(1310, 2406.044678, -2266.016357, 61.370602, 0.0000, 0.0000, 0.0000);
CreateObject(3361, 2411.412354, -2278.384277, 42.745335, 0.0000, 0.0000, 45.0000);
CreateObject(3361, 2407.620117, -2282.191406, 46.355339, 0.0000, 0.0000, 45.0000);
CreateObject(8040, 2373.581055, -2309.333008, 49.217285, 0.0000, 0.0000, 45.0000);
CreateObject(18449, 2315.786865, -2363.705811, 54.357346, 0.0000, 0.0000, 45.0000);
CreateObject(18449, 2262.869385, -2415.759277, 15.115066, 0.0000, 0.0000, 45.0000);
CreateObject(18449, 2261.165527, -2417.489502, 57.871143, 0.0000, 5.1566, 44.1406);
CreateObject(18449, 2211.973633, -2465.761719, 74.371460, 0.0000, 20.6265, 45.0000);
CreateObject(18449, 2168.377686, -2510.701172, 108.038467, 0.0000, 36.9558, 46.7189);
CreateObject(1634, 2343.382568, -2336.330811, 54.773399, 348.8273, 0.0000, 315.8594);
CreateObject(1634, 2349.124023, -2330.444580, 58.648464, 10.3132, 0.0000, 315.8594);
CreateObject(18449, 2394.110352, -2286.515381, 72.269287, 0.0000, 0.0000, 45.0000);
CreateObject(1634, 2422.511475, -2257.913574, 72.885262, 353.1245, 0.0000, 314.1406);
CreateObject(1634, 2491.178223, -2227.911621, 13.563873, 7.7349, 359.1406, 268.5905);
CreateObject(1634, 2428.247803, -2252.407715, 76.165497, 1.7189, 0.0000, 313.2038);
CreateObject(1634, 2432.047119, -2248.710938, 80.644035, 29.2208, 0.8594, 315.7821);
CreateObject(1634, 2350.145996, -2336.215088, 52.823975, 320.4659, 359.1406, 315.8594);
CreateObject(1634, 2355.208252, -2331.069824, 51.774101, 331.6386, 0.0000, 315.0000);
CreateObject(1634, 2360.907227, -2325.318115, 49.473976, 310.1527, 0.0000, 315.0000);
CreateObject(1634, 2498.211426, -2228.044189, 19.065718, 18.0482, 359.1406, 268.5905);
CreateObject(8040, 2071.405029, -2611.071045, 258.330963, 0.0000, 359.1406, 45.0000);
CreateObject(18449, 2130.239502, -2551.124512, 160.508057, 0.0000, 49.8473, 46.7189);
CreateObject(18449, 2107.901123, -2574.631348, 219.969864, 0.0000, 71.3332, 46.7189);
CreateObject(3331, 2315.089355, -2654.372070, 25.017567, 0.0000, 0.0000, 270.0000);
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}

#else

P.S.: Imi place accentul tau ;)

Link to comment
Share on other sites

  • 0

ahaaaaaaaa .... am inteles ... dar daca vreau sa ma teleportez unde am facut eu mapa si am pus si masini si tot.... pot pune comanda sa ma duc acolo????

Link to comment
Share on other sites

  • 0


#include <a_samp>

// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
CreateObject(1310, 2406.044678, -2266.016357, 61.370602, 0.0000, 0.0000, 0.0000);
CreateObject(3361, 2411.412354, -2278.384277, 42.745335, 0.0000, 0.0000, 45.0000);
CreateObject(3361, 2407.620117, -2282.191406, 46.355339, 0.0000, 0.0000, 45.0000);
CreateObject(8040, 2373.581055, -2309.333008, 49.217285, 0.0000, 0.0000, 45.0000);
CreateObject(18449, 2315.786865, -2363.705811, 54.357346, 0.0000, 0.0000, 45.0000);
CreateObject(18449, 2262.869385, -2415.759277, 15.115066, 0.0000, 0.0000, 45.0000);
CreateObject(18449, 2261.165527, -2417.489502, 57.871143, 0.0000, 5.1566, 44.1406);
CreateObject(18449, 2211.973633, -2465.761719, 74.371460, 0.0000, 20.6265, 45.0000);
CreateObject(18449, 2168.377686, -2510.701172, 108.038467, 0.0000, 36.9558, 46.7189);
CreateObject(1634, 2343.382568, -2336.330811, 54.773399, 348.8273, 0.0000, 315.8594);
CreateObject(1634, 2349.124023, -2330.444580, 58.648464, 10.3132, 0.0000, 315.8594);
CreateObject(18449, 2394.110352, -2286.515381, 72.269287, 0.0000, 0.0000, 45.0000);
CreateObject(1634, 2422.511475, -2257.913574, 72.885262, 353.1245, 0.0000, 314.1406);
CreateObject(1634, 2491.178223, -2227.911621, 13.563873, 7.7349, 359.1406, 268.5905);
CreateObject(1634, 2428.247803, -2252.407715, 76.165497, 1.7189, 0.0000, 313.2038);
CreateObject(1634, 2432.047119, -2248.710938, 80.644035, 29.2208, 0.8594, 315.7821);
CreateObject(1634, 2350.145996, -2336.215088, 52.823975, 320.4659, 359.1406, 315.8594);
CreateObject(1634, 2355.208252, -2331.069824, 51.774101, 331.6386, 0.0000, 315.0000);
CreateObject(1634, 2360.907227, -2325.318115, 49.473976, 310.1527, 0.0000, 315.0000);
CreateObject(1634, 2498.211426, -2228.044189, 19.065718, 18.0482, 359.1406, 268.5905);
CreateObject(8040, 2071.405029, -2611.071045, 258.330963, 0.0000, 359.1406, 45.0000);
CreateObject(18449, 2130.239502, -2551.124512, 160.508057, 0.0000, 49.8473, 46.7189);
CreateObject(18449, 2107.901123, -2574.631348, 219.969864, 0.0000, 71.3332, 46.7189);
CreateObject(3331, 2315.089355, -2654.372070, 25.017567, 0.0000, 0.0000, 270.0000);
return 1;
}

public OnFilterScriptExit()
{
return 1;
}

#else

Pune-l pe asta inloc de ala de la new.

Adica,sterge-l pe ala care iti apare tie,si pune-l pe asta.

logo.png

ATENTIE!!! Nu imi trimiteti mesaje private care au legatura cu scriptingul. NU mai scriptez.

Link to comment
Share on other sites

  • 0

C:\Documents and Settings\Publick\Desktop\samp02Xserver.win32\pawno\Untitled.pwn(44) : error 001: expected token: "#endif", but found "-end of file-"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

LOL acum nu mai apare nimic cand dau new Dc?

_______________________________________________________

si salvasem mapa care am facuto..... si nu merge comanda care am puso... ca zicea acolo /youcommands sau cv de genu si am scris /laur 

si am intrat si in samp .. am dat /laur si nu imi zicea nimic... nu zicea ca aceasta comanda nu exista... deci exista dar nu aparea

Link to comment
Share on other sites

  • 0

#include <a_samp>

#define FILTERSCRIPT
#pragma tabsize 0









public OnFilterScriptInit() {
CreateObject(1310, 2406.044678, -2266.016357, 61.370602, 0.0000, 0.0000, 0.0000);
CreateObject(3361, 2411.412354, -2278.384277, 42.745335, 0.0000, 0.0000, 45.0000);
CreateObject(3361, 2407.620117, -2282.191406, 46.355339, 0.0000, 0.0000, 45.0000);
CreateObject(8040, 2373.581055, -2309.333008, 49.217285, 0.0000, 0.0000, 45.0000);
CreateObject(18449, 2315.786865, -2363.705811, 54.357346, 0.0000, 0.0000, 45.0000);
CreateObject(18449, 2262.869385, -2415.759277, 15.115066, 0.0000, 0.0000, 45.0000);
CreateObject(18449, 2261.165527, -2417.489502, 57.871143, 0.0000, 5.1566, 44.1406);
CreateObject(18449, 2211.973633, -2465.761719, 74.371460, 0.0000, 20.6265, 45.0000);
CreateObject(18449, 2168.377686, -2510.701172, 108.038467, 0.0000, 36.9558, 46.7189);
CreateObject(1634, 2343.382568, -2336.330811, 54.773399, 348.8273, 0.0000, 315.8594);
CreateObject(1634, 2349.124023, -2330.444580, 58.648464, 10.3132, 0.0000, 315.8594);
CreateObject(18449, 2394.110352, -2286.515381, 72.269287, 0.0000, 0.0000, 45.0000);
CreateObject(1634, 2422.511475, -2257.913574, 72.885262, 353.1245, 0.0000, 314.1406);
CreateObject(1634, 2491.178223, -2227.911621, 13.563873, 7.7349, 359.1406, 268.5905);
CreateObject(1634, 2428.247803, -2252.407715, 76.165497, 1.7189, 0.0000, 313.2038);
CreateObject(1634, 2432.047119, -2248.710938, 80.644035, 29.2208, 0.8594, 315.7821);
CreateObject(1634, 2350.145996, -2336.215088, 52.823975, 320.4659, 359.1406, 315.8594);
CreateObject(1634, 2355.208252, -2331.069824, 51.774101, 331.6386, 0.0000, 315.0000);
CreateObject(1634, 2360.907227, -2325.318115, 49.473976, 310.1527, 0.0000, 315.0000);
CreateObject(1634, 2498.211426, -2228.044189, 19.065718, 18.0482, 359.1406, 268.5905);
CreateObject(8040, 2071.405029, -2611.071045, 258.330963, 0.0000, 359.1406, 45.0000);
CreateObject(18449, 2130.239502, -2551.124512, 160.508057, 0.0000, 49.8473, 46.7189);
CreateObject(18449, 2107.901123, -2574.631348, 219.969864, 0.0000, 71.3332, 46.7189);
CreateObject(3331, 2315.089355, -2654.372070, 25.017567, 0.0000, 0.0000, 270.0000);
	return 1; }
Si pentru teleportare:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/comanda", cmdtext, true, 10) == 0)
	{
		SetPlayerPos(playerid, coordonatele);
		return 1;
	}
	return 0;
}

Link to comment
Share on other sites

  • 0

merge merge merge merge merge merge  :D :D :-* ms mult

__________________________________________

cum pot sa pun masini???

imi poti da un cod care sa fie gen asa

Codu masini , coordonate

pls

Link to comment
Share on other sites

  • 0

Ti-a scris Lazlow mai sus.Dar in fine,uite:

#include <a_samp>

#define FILTERSCRIPT
#pragma tabsize 0

public OnFilterScriptInit() {
CreateObject(1310, 2406.044678, -2266.016357, 61.370602, 0.0000, 0.0000, 0.0000);
CreateObject(3361, 2411.412354, -2278.384277, 42.745335, 0.0000, 0.0000, 45.0000);
CreateObject(3361, 2407.620117, -2282.191406, 46.355339, 0.0000, 0.0000, 45.0000);
CreateObject(8040, 2373.581055, -2309.333008, 49.217285, 0.0000, 0.0000, 45.0000);
CreateObject(18449, 2315.786865, -2363.705811, 54.357346, 0.0000, 0.0000, 45.0000);
CreateObject(18449, 2262.869385, -2415.759277, 15.115066, 0.0000, 0.0000, 45.0000);
CreateObject(18449, 2261.165527, -2417.489502, 57.871143, 0.0000, 5.1566, 44.1406);
CreateObject(18449, 2211.973633, -2465.761719, 74.371460, 0.0000, 20.6265, 45.0000);
CreateObject(18449, 2168.377686, -2510.701172, 108.038467, 0.0000, 36.9558, 46.7189);
CreateObject(1634, 2343.382568, -2336.330811, 54.773399, 348.8273, 0.0000, 315.8594);
CreateObject(1634, 2349.124023, -2330.444580, 58.648464, 10.3132, 0.0000, 315.8594);
CreateObject(18449, 2394.110352, -2286.515381, 72.269287, 0.0000, 0.0000, 45.0000);
CreateObject(1634, 2422.511475, -2257.913574, 72.885262, 353.1245, 0.0000, 314.1406);
CreateObject(1634, 2491.178223, -2227.911621, 13.563873, 7.7349, 359.1406, 268.5905);
CreateObject(1634, 2428.247803, -2252.407715, 76.165497, 1.7189, 0.0000, 313.2038);
CreateObject(1634, 2432.047119, -2248.710938, 80.644035, 29.2208, 0.8594, 315.7821);
CreateObject(1634, 2350.145996, -2336.215088, 52.823975, 320.4659, 359.1406, 315.8594);
CreateObject(1634, 2355.208252, -2331.069824, 51.774101, 331.6386, 0.0000, 315.0000);
CreateObject(1634, 2360.907227, -2325.318115, 49.473976, 310.1527, 0.0000, 315.0000);
CreateObject(1634, 2498.211426, -2228.044189, 19.065718, 18.0482, 359.1406, 268.5905);
CreateObject(8040, 2071.405029, -2611.071045, 258.330963, 0.0000, 359.1406, 45.0000);
CreateObject(18449, 2130.239502, -2551.124512, 160.508057, 0.0000, 49.8473, 46.7189);
CreateObject(18449, 2107.901123, -2574.631348, 219.969864, 0.0000, 71.3332, 46.7189);
CreateObject(3331, 2315.089355, -2654.372070, 25.017567, 0.0000, 0.0000, 270.0000);
return 1; }
public OnPlayerCommandText(playerid, cmdtext[]) //Comanda pt teleportare
{
if (strcmp("/comanda", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, coordonatele); //coordonatele unde sa se teleporteze
return 1;
}
return 0;
}

logo.png

ATENTIE!!! Nu imi trimiteti mesaje private care au legatura cu scriptingul. NU mai scriptez.

Link to comment
Share on other sites

  • 0

am nevoie de un cod pentru a pune o masina... nu tot codul.

de exemplu vreau sa pun o masina cheetah la codul de mai sus.

Pai trebuie sa salvezi coordonatele.Asta o poti faci scriind cand esti pe Server intr-o masina /save iar apoi intri unde ai GTA SA instalat si gasesti un fisier savedpozition.Gasesti in el niste linii de genu:

AddStaticVehicle(ID Car,coordonatele); //

Copii randurile alea in script si gata.

PS: Asta cam e Off Topic dintr-una o dam in alta,dar ...

logo.png

ATENTIE!!! Nu imi trimiteti mesaje private care au legatura cu scriptingul. NU mai scriptez.

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.