Jump to content

SAMP server crasht bij start-up.


Recommended Posts

Geplaatst: (bewerkt)

Dus ik heb een script in PAWNO, heel mooi gelukt etc. Pawno geeft geen compile errors, maar als ik dan in m'n server wil krijg ik een crash naar desktop :S En het ligt niet aan me SAMP want ik kan gewoon op andere servers. voor de handigheid is hier mijn script:

(deze doet t)

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

#include <a_samp>
#include <IsPlayerLAdmin>
#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("PArena BETA");
AddPlayerClass(285, 411.800, 2444.158, 16.500, 359.09, 0, 0, 0, 0, 0, 0); // teamSWAT
AddPlayerClass(287, 392.889, 2458.916, 16.500, 359.09, 0, 0, 0, 0, 0, 0); // teamarmy
CreateObject(7368, 181.998046875, 2383.7998046875, 18.576999664307, 0.000000, 0.000000, 180); //
CreateObject(7368, 176.7060546875, 2383.205078125, 18.577945709229, 0.000000, 0.000000, 0.000000); //
CreateObject(3279, 183.55554199219, 2411.173828125, 15.476566314697, 0.000000, 0.000000, 0.000000); //
CreateObject(3260, 176.08709716797, 2370.4235839844, 16.476732254028, 0.000000, 0.000000, 184.60437011719); //
CreateObject(3275, 161.60809326172, 2369.802734375, 16.411218643188, 0.000000, 0.000000, 13.89208984375); //
CreateObject(1447, 171.76431274414, 2370.8227539063, 16.763887405396, 0.000000, 0.000000, 168.72448730469); //
CreateObject(1447, 149.82797241211, 2368.6437988281, 16.763887405396, 0.000000, 0.000000, 168.72253417969); //
CreateObject(13109, 150.8655090332, 2360.9614257813, 27.489650726318, 180, 0.000000, 0.000000); //
CreateObject(3585, 213.25749206543, 2370.0974121094, 17.114263534546, 0.000000, 0.000000, 17.864868164063); //
CreateObject(3564, 165.58966064453, 2368.2080078125, 17.114263534546, 0.000000, 0.000000, 31.759765625); //
CreateObject(3066, 202.18927001953, 2368.6396484375, 16.538650512695, 0.000000, 0.000000, 95.278930664063); //
CreateObject(16280, 173.341796875, 2346.7958984375, 18.450994491577, 0.000000, 0.000000, 89.324340820313); //
CreateObject(1422, 177.54513549805, 2343.2414550781, 18.659339904785, 0.000000, 0.000000, 0.000000); //
CreateObject(1422, 172.16136169434, 2343.35546875, 18.639781951904, 0.000000, 0.000000, 0.000000); //
CreateObject(4724, 166.72711181641, 2389.4606933594, 17.503540039063, 0.000000, 0.000000, 0.000000); //
CreateObject(922, 198.76657104492, 2387.8928222656, 16.369915008545, 0.000000, 0.000000, 0.000000); //
CreateObject(2985, 174.90043640137, 2343.2219238281, 18.268388748169, 0.000000, 0.000000, 89.324493408203); //
CreateObject(16770, 188.09196472168, 2365.6711425781, 17.074934005737, 0.000000, 0.000000, 91.309509277344); //
CreateObject(1776, 178.74429321289, 2343.8315429688, 15.699999809265, 0.000000, 20, 176.66442871094); //
CreateObject(18451, 187.40365600586, 2366.8212890625, 15.996801376343, 0.000000, 0.000000, 0.000000); //
CreateObject(974, 217.70016479492, 2326.4438476563, 23.261169433594, 0.000000, 0.000000, 90); //
CreateObject(974, 214.056640625, 2323.3916015625, 23.262115478516, 0.000000, 0.000000, 0.000000); //
CreateObject(969, 217.90618896484, 2395.2504882813, 20.483428955078, 0.000000, 0.000000, 90); //
CreateObject(969, 217.74671936035, 2404.2470703125, 20.338890075684, 0.000000, 0.000000, 90); //
CreateObject(969, 217.78570556641, 2413.2629394531, 20.483428955078, 0.000000, 0.000000, 90); //
CreateObject(969, 217.8370513916, 2422.2470703125, 20.440509796143, 0.000000, 0.000000, 90); //
CreateObject(971, 406.13711547852, 2476.7353515625, 19.10000038147, 0.000000, 0.000000, 0.000000); //
CreateObject(971, 415.00500488281, 2476.7353515625, 19.10000038147, 0.000000, 0.000000, 0.000000); //
CreateObject(971, 397.35763549805, 2476.7353515625, 19.10000038147, 0.000000, 0.000000, 0.000000); //
CreateObject(971, 388.51922607422, 2476.7353515625, 19.10000038147, 0.000000, 0.000000, 0.000000); //
CreateObject(971, 382.29861450195, 2476.7443847656, 19.10000038147, 0.000000, 0.000000, 0.000000); //
CreateObject(8147, 401.25250244141, 2477.4594726563, 18.585401535034, 0.000000, 0.000000, 0.000000); //
CreateObject(970, 413.0544128418, 2544.0793457031, 27.438491821289, 0.000000, 90, 0.000000); //


AddStaticVehicle(471, 194.28411865234, 2350.7980957031, 15.90466594696, 89.324340820313, -1, -1); //0
AddStaticVehicle(471, 200.01402282715, 2436.3620605469, 16.061887741089, 113.14422607422, -1, -1); //1
AddStaticVehicle(425, 365.52783203125, 2535.7541503906, 17.514940261841, 180, -1, -1); //2

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 OnPlayerConnect(playerid)
{
return 1;
}

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

public OnPlayerSpawn(playerid)
{
   {
   SendClientMessage(playerid, 0xFF0000AA, "spawnkilling is STRICTLY forbidden in this zone. to advance to the arena, type /pb");
}
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 OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/sandstorm", cmdtext, true, 10) == 0) //turns the weather into a sandstorm, lvl 5 admin only. (head)
       if (IsPlayerAdminLevel(playerid, 5))
{
SetWeather(19);
	}
if (strcmp("/sandstormoff", cmdtext, true, 10) == 0) //turns the weather into normal, lvl 5 admin only. (head)
       if (IsPlayerAdminLevel(playerid, 5))
   {
SetWeather(1);
	}
return 0;
}

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 OnPlayerRequestSpawn(playerid)
{
return 1;
}

public OnObjectMoved(objectid)
{
return 1;
}

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

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

public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}

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

public OnPlayerExitedMenu(playerid)
{
return 1;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}

public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}

public OnPlayerUpdate(playerid)
{
return 1;
}

public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}

public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
return 1;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}

(deze niet)

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

#include <a_samp>
#include <IsPlayerLAdmin>
#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("PArena BETA");
AddPlayerClass(285, 411.800, 2444.158, 16.500, 359.09, 0, 0, 0, 0, 0, 0); // teamSWAT
AddPlayerClass(287, 392.889, 2458.916, 16.500, 359.09, 0, 0, 0, 0, 0, 0); // teamarmy
CreateObject(7368, 181.998046875, 2383.7998046875, 18.576999664307, 0.000000, 0.000000, 180); //
CreateObject(7368, 176.7060546875, 2383.205078125, 18.577945709229, 0.000000, 0.000000, 0.000000); //
CreateObject(3279, 183.55554199219, 2411.173828125, 15.476566314697, 0.000000, 0.000000, 0.000000); //
CreateObject(3260, 176.08709716797, 2370.4235839844, 16.476732254028, 0.000000, 0.000000, 184.60437011719); //
CreateObject(3275, 161.60809326172, 2369.802734375, 16.411218643188, 0.000000, 0.000000, 13.89208984375); //
CreateObject(1447, 171.76431274414, 2370.8227539063, 16.763887405396, 0.000000, 0.000000, 168.72448730469); //
CreateObject(1447, 149.82797241211, 2368.6437988281, 16.763887405396, 0.000000, 0.000000, 168.72253417969); //
CreateObject(13109, 150.8655090332, 2360.9614257813, 27.489650726318, 180, 0.000000, 0.000000); //
CreateObject(3585, 213.25749206543, 2370.0974121094, 17.114263534546, 0.000000, 0.000000, 17.864868164063); //
CreateObject(3564, 165.58966064453, 2368.2080078125, 17.114263534546, 0.000000, 0.000000, 31.759765625); //
CreateObject(3066, 202.18927001953, 2368.6396484375, 16.538650512695, 0.000000, 0.000000, 95.278930664063); //
CreateObject(16280, 173.341796875, 2346.7958984375, 18.450994491577, 0.000000, 0.000000, 89.324340820313); //
CreateObject(1422, 177.54513549805, 2343.2414550781, 18.659339904785, 0.000000, 0.000000, 0.000000); //
CreateObject(1422, 172.16136169434, 2343.35546875, 18.639781951904, 0.000000, 0.000000, 0.000000); //
CreateObject(4724, 166.72711181641, 2389.4606933594, 17.503540039063, 0.000000, 0.000000, 0.000000); //
CreateObject(922, 198.76657104492, 2387.8928222656, 16.369915008545, 0.000000, 0.000000, 0.000000); //
CreateObject(2985, 174.90043640137, 2343.2219238281, 18.268388748169, 0.000000, 0.000000, 89.324493408203); //
CreateObject(16770, 188.09196472168, 2365.6711425781, 17.074934005737, 0.000000, 0.000000, 91.309509277344); //
CreateObject(1776, 178.74429321289, 2343.8315429688, 15.699999809265, 0.000000, 20, 176.66442871094); //
CreateObject(18451, 187.40365600586, 2366.8212890625, 15.996801376343, 0.000000, 0.000000, 0.000000); //
CreateObject(974, 217.70016479492, 2326.4438476563, 23.261169433594, 0.000000, 0.000000, 90); //
CreateObject(974, 214.056640625, 2323.3916015625, 23.262115478516, 0.000000, 0.000000, 0.000000); //
CreateObject(969, 217.90618896484, 2395.2504882813, 20.483428955078, 0.000000, 0.000000, 90); //
CreateObject(969, 217.74671936035, 2404.2470703125, 20.338890075684, 0.000000, 0.000000, 90); //
CreateObject(969, 217.78570556641, 2413.2629394531, 20.483428955078, 0.000000, 0.000000, 90); //
CreateObject(969, 217.8370513916, 2422.2470703125, 20.440509796143, 0.000000, 0.000000, 90); //
CreateObject(971, 406.13711547852, 2476.7353515625, 19.10000038147, 0.000000, 0.000000, 0.000000); //
CreateObject(971, 415.00500488281, 2476.7353515625, 19.10000038147, 0.000000, 0.000000, 0.000000); //
CreateObject(971, 397.35763549805, 2476.7353515625, 19.10000038147, 0.000000, 0.000000, 0.000000); //
CreateObject(971, 388.51922607422, 2476.7353515625, 19.10000038147, 0.000000, 0.000000, 0.000000); //
CreateObject(971, 382.29861450195, 2476.7443847656, 19.10000038147, 0.000000, 0.000000, 0.000000); //
CreateObject(8147, 401.25250244141, 2477.4594726563, 18.585401535034, 0.000000, 0.000000, 0.000000); //
CreateObject(970, 413.0544128418, 2544.0793457031, 27.438491821289, 0.000000, 90, 0.000000); //


AddStaticVehicle(471, 194.28411865234, 2350.7980957031, 15.90466594696, 89.324340820313, -1, -1); //0
AddStaticVehicle(471, 200.01402282715, 2436.3620605469, 16.061887741089, 113.14422607422, -1, -1); //1
AddStaticVehicle(425, 365.52783203125, 2535.7541503906, 17.514940261841, 180, -1, -1); //2

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 OnPlayerConnect(playerid)
{
return 1;
}

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

public OnPlayerSpawn(playerid)
{
   {
   SendClientMessage(playerid, 0xFF0000AA, "spawnkilling is STRICTLY forbidden in this zone. to advance to the arena, type /pb");
}
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 OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/sandstorm", cmdtext, true, 10) == 0) //turns the weather into a sandstorm, lvl 5 admin only. (head)
       if (IsPlayerAdminLevel(playerid, 5))
{
	SetWeather(19);
	}
if (strcmp("/sandstormoff", cmdtext, true, 10) == 0) //turns the weather into normal, lvl 5 admin only. (head)
       if (IsPlayerAdminLevel(playerid, 5))
   {
	SetWeather(1);
	}
if(strcmp("/pb", cmdtext, true, 10)==0) //arena
   {
       SetPlayerPos(playerid, 183.715, 2410.538, 32.554);
   }
if(strcmp("/adminjail", cmdtext, true, 10)==0) //adminjail
   if (IsPlayerAdminLevel(playerid, 5))
   {
       SetPlayerPos(playerid, 413.148, 2542.877, 26.582);
   }
if(strcmp("/hunter", cmdtext, true, 10)==0)
if (IsPlayerAdminLevel(playerid, 5))
{
   	SetPlayerPos(playerid, 360.574, 2537.083, 16.688);
}
return 0;
}

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 OnPlayerRequestSpawn(playerid)
{
return 1;
}

public OnObjectMoved(objectid)
{
return 1;
}

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

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

public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}

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

public OnPlayerExitedMenu(playerid)
{
return 1;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}

public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}

public OnPlayerUpdate(playerid)
{
return 1;
}

public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}

public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
return 1;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}

Ik gebruik het ladmin2v4 filterscript.

Bewerkt: door TEH_GTA_COLLECTOR
Geplaatst:

Zegt je serverlog niks? Bijv 'cannot read Gamemode'?

dis t laatste wat ie zei:

SA-MP Dedicated Server

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

v0.3a R3, ©2005-2009 SA-MP Team

[15:07:16]

[15:07:16] Server Plugins

[15:07:16] --------------

[15:07:16] Loaded 0 plugins.

[15:07:16]

[15:07:16] Filter Scripts

[15:07:16] ---------------

[15:07:16] Loading filter script 'ladmin4v2.amx'...

[15:07:16]

________________________________________

[15:07:16] ________________________________________

[15:07:16] LAdmin Loading...

[15:07:16] ________________________________________

[15:07:16]

-Configuration Settings Loaded

[15:07:16] -39 Forbidden Names Loaded

[15:07:16] -10 Forbidden Tags Loaded

[15:07:16] -9 Forbidden Words Loaded

[15:07:16] ________________________________________

[15:07:16] LAdmin Version 4.0

[15:07:16] Loaded

[15:07:16] ________________________________________

[15:07:16] Date: 14/12/2009 Time: 15:7 :16

[15:07:16] ________________________________________

[15:07:16] ________________________________________

[15:07:16] Loaded 1 filter scripts.

[15:07:16]

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

[15:07:16] Blank Gamemode by your name here

[15:07:16] ----------------------------------

[15:07:16] Number of vehicle models: 2

[15:07:31] --- Server Shutting Down.

[15:07:31]

________________________________________

[15:07:31] ________________________________________

[15:07:31] LAdmin Unloaded

[15:07:31] ________________________________________

[15:07:31] Date: 14/12/2009 Time: 15:7 :31

[15:07:31] ________________________________________

Geplaatst:

Dus ik heb een script in PAWNO, heel mooi gelukt etc. Pawno geeft geen compile errors, maar als ik dan in m'n server wil krijg ik een crash naar desktop :S En het ligt niet aan me SAMP want ik kan gewoon op andere servers. voor de handigheid is hier mijn script:

Ik gebruik het ladmin2v4 filterscript.

Er zitten nogal wat fouten in je brackets ('{' en '}'). Probeer dit eens:

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

#include <a_samp>
#include <IsPlayerLAdmin>
#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("PArena BETA");
AddPlayerClass(285, 411.800, 2444.158, 16.500, 359.09, 0, 0, 0, 0, 0, 0); // teamSWAT
AddPlayerClass(287, 392.889, 2458.916, 16.500, 359.09, 0, 0, 0, 0, 0, 0); // teamarmy
CreateObject(7368, 181.998046875, 2383.7998046875, 18.576999664307, 0.000000, 0.000000, 180); //
CreateObject(7368, 176.7060546875, 2383.205078125, 18.577945709229, 0.000000, 0.000000, 0.000000); //
CreateObject(3279, 183.55554199219, 2411.173828125, 15.476566314697, 0.000000, 0.000000, 0.000000); //
CreateObject(3260, 176.08709716797, 2370.4235839844, 16.476732254028, 0.000000, 0.000000, 184.60437011719); //
CreateObject(3275, 161.60809326172, 2369.802734375, 16.411218643188, 0.000000, 0.000000, 13.89208984375); //
CreateObject(1447, 171.76431274414, 2370.8227539063, 16.763887405396, 0.000000, 0.000000, 168.72448730469); //
CreateObject(1447, 149.82797241211, 2368.6437988281, 16.763887405396, 0.000000, 0.000000, 168.72253417969); //
CreateObject(13109, 150.8655090332, 2360.9614257813, 27.489650726318, 180, 0.000000, 0.000000); //
CreateObject(3585, 213.25749206543, 2370.0974121094, 17.114263534546, 0.000000, 0.000000, 17.864868164063); //
CreateObject(3564, 165.58966064453, 2368.2080078125, 17.114263534546, 0.000000, 0.000000, 31.759765625); //
CreateObject(3066, 202.18927001953, 2368.6396484375, 16.538650512695, 0.000000, 0.000000, 95.278930664063); //
CreateObject(16280, 173.341796875, 2346.7958984375, 18.450994491577, 0.000000, 0.000000, 89.324340820313); //
CreateObject(1422, 177.54513549805, 2343.2414550781, 18.659339904785, 0.000000, 0.000000, 0.000000); //
CreateObject(1422, 172.16136169434, 2343.35546875, 18.639781951904, 0.000000, 0.000000, 0.000000); //
CreateObject(4724, 166.72711181641, 2389.4606933594, 17.503540039063, 0.000000, 0.000000, 0.000000); //
CreateObject(922, 198.76657104492, 2387.8928222656, 16.369915008545, 0.000000, 0.000000, 0.000000); //
CreateObject(2985, 174.90043640137, 2343.2219238281, 18.268388748169, 0.000000, 0.000000, 89.324493408203); //
CreateObject(16770, 188.09196472168, 2365.6711425781, 17.074934005737, 0.000000, 0.000000, 91.309509277344); //
CreateObject(1776, 178.74429321289, 2343.8315429688, 15.699999809265, 0.000000, 20, 176.66442871094); //
CreateObject(18451, 187.40365600586, 2366.8212890625, 15.996801376343, 0.000000, 0.000000, 0.000000); //
CreateObject(974, 217.70016479492, 2326.4438476563, 23.261169433594, 0.000000, 0.000000, 90); //
CreateObject(974, 214.056640625, 2323.3916015625, 23.262115478516, 0.000000, 0.000000, 0.000000); //
CreateObject(969, 217.90618896484, 2395.2504882813, 20.483428955078, 0.000000, 0.000000, 90); //
CreateObject(969, 217.74671936035, 2404.2470703125, 20.338890075684, 0.000000, 0.000000, 90); //
CreateObject(969, 217.78570556641, 2413.2629394531, 20.483428955078, 0.000000, 0.000000, 90); //
CreateObject(969, 217.8370513916, 2422.2470703125, 20.440509796143, 0.000000, 0.000000, 90); //
CreateObject(971, 406.13711547852, 2476.7353515625, 19.10000038147, 0.000000, 0.000000, 0.000000); //
CreateObject(971, 415.00500488281, 2476.7353515625, 19.10000038147, 0.000000, 0.000000, 0.000000); //
CreateObject(971, 397.35763549805, 2476.7353515625, 19.10000038147, 0.000000, 0.000000, 0.000000); //
CreateObject(971, 388.51922607422, 2476.7353515625, 19.10000038147, 0.000000, 0.000000, 0.000000); //
CreateObject(971, 382.29861450195, 2476.7443847656, 19.10000038147, 0.000000, 0.000000, 0.000000); //
CreateObject(8147, 401.25250244141, 2477.4594726563, 18.585401535034, 0.000000, 0.000000, 0.000000); //
CreateObject(970, 413.0544128418, 2544.0793457031, 27.438491821289, 0.000000, 90, 0.000000); //


AddStaticVehicle(471, 194.28411865234, 2350.7980957031, 15.90466594696, 89.324340820313, -1, -1); //0
AddStaticVehicle(471, 200.01402282715, 2436.3620605469, 16.061887741089, 113.14422607422, -1, -1); //1
AddStaticVehicle(425, 365.52783203125, 2535.7541503906, 17.514940261841, 180, -1, -1); //2

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 OnPlayerConnect(playerid)
{
return 1;
}

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

public OnPlayerSpawn(playerid)
{
SendClientMessage(playerid, 0xFF0000AA, "spawnkilling is STRICTLY forbidden in this zone. to advance to the arena, type /pb");
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 OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/sandstorm", cmdtext, true, 10) == 0)  //turns the weather into a sandstorm, lvl 5 admin only. (head)
{
       	if (IsPlayerAdminLevel(playerid, 5))
	{
		SetWeather(19);
		}
	return 1;
}

if (strcmp("/sandstormoff", cmdtext, true, 10) == 0) //turns the weather into normal, lvl 5 admin only. (head)
{
       	if (IsPlayerAdminLevel(playerid, 5))
	{
		SetWeather(1);
	}
	return 1;
}

if(strcmp("/pb", cmdtext, true, 10)==0) //arena
{
	SetPlayerPos(playerid, 183.715, 2410.538, 32.554);
	return 1;
}

if(strcmp("/adminjail", cmdtext, true, 10)==0) //adminjail
{
	if (IsPlayerAdminLevel(playerid, 5))
	{
		SetPlayerPos(playerid, 413.148, 2542.877, 26.582);
	}
	return 1;
}

if(strcmp("/hunter", cmdtext, true, 10)==0)
{
	if (IsPlayerAdminLevel(playerid, 5))
	{
   			SetPlayerPos(playerid, 360.574, 2537.083, 16.688);
	}
	return 1;
}

return 0;
}

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 OnPlayerRequestSpawn(playerid)
{
return 1;
}

public OnObjectMoved(objectid)
{
return 1;
}

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

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

public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}

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

public OnPlayerExitedMenu(playerid)
{
return 1;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}

public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}

public OnPlayerUpdate(playerid)
{
return 1;
}

public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}

public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
return 1;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}

Geplaatst: (bewerkt)

public OnPlayerSpawn(playerid)
{
   //{ << wtf doet die hier? Je opent een niet bracket zonder header?
   SendClientMessage(playerid, 0xFF0000AA, "spawnkilling is STRICTLY forbidden in this zone. to advance to the arena, type /pb");
       //} << kan die natuurlijk ook weg..
       return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
   if (strcmp("/sandstorm", cmdtext, true, 10) == 0)
   //Waar is hier een nieuwe openingsbracket?
   { //Plaats ik hem maar.
       if (IsPlayerAdminLevel(playerid, 5))
       {
           SetWeather(19);
           return 1; //Command afsluiten
       }
       return 1; // Hier ook
   } //Dicht
   if (strcmp("/sandstormoff", cmdtext, true, 10) == 0)
   { //Zelfde probleem hier.
      if (IsPlayerAdminLevel(playerid, 5))
       {
           SetWeather(1);
           return 1; //Ook hier altijd de command afsluiten
       }
       return 1; //Hier ook
   } //En weer sluiten
   return 0;
}

EDIT: Oh, beetje hetzelfde als dat van Wanted zie ik nu.

Denk dan toch dat de fout niet in je GM zit, want het script van Wanted behoort echt te werken. Zet eens alle filterscripts uit, en probeer het daarna nog eens.

Bewerkt: door Remi-X
Geplaatst:

public OnPlayerSpawn(playerid)
{
   //{ << wtf doet die hier? Je opent een niet bracket zonder header?
   SendClientMessage(playerid, 0xFF0000AA, "spawnkilling is STRICTLY forbidden in this zone. to advance to the arena, type /pb");
       //} << kan die natuurlijk ook weg..
       return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
   if (strcmp("/sandstorm", cmdtext, true, 10) == 0)
   //Waar is hier een nieuwe openingsbracket?
   { //Plaats ik hem maar.
       if (IsPlayerAdminLevel(playerid, 5))
       {
           SetWeather(19);
           return 1; //Command afsluiten
       }
       return 1; // Hier ook
   } //Dicht
   if (strcmp("/sandstormoff", cmdtext, true, 10) == 0)
   { //Zelfde probleem hier.
      if (IsPlayerAdminLevel(playerid, 5))
       {
           SetWeather(1);
           return 1; //Ook hier altijd de command afsluiten
       }
       return 1; //Hier ook
   } //En weer sluiten
   return 0;
}

EDIT: Oh, beetje hetzelfde als dat van Wanted zie ik nu.

Denk dan toch dat de fout niet in je GM zit, want het script van Wanted behoort echt te werken. Zet eens alle filterscripts uit, en probeer het daarna nog eens.

keb het al gevonden, het was s0beit die ervoor zorgde dat ik crash (gebruikte het om snel coords etc. te vinden :D) bedankt :D

Een reactie plaatsen

Je kan nu een reactie plaatsen en pas achteraf registreren. Als je al lid bent, log eerst in om met je eigen account een reactie te plaatsen.

Gast
Op dit onderwerp reageren...

×   Je hebt text geplaatst met opmaak.   Opmaak verwijderen

  Only 75 emoji are allowed.

×   Je link is automatisch ingevoegd.   In plaats daarvan weergeven als link

×   Je vorige bewerkingen zijn hersteld.   Alles verwijderen

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

  • Recent actief   0 leden

    • Er zijn hier geen geregistreerde gebruikers aanwezig.
×
×
  • Create New...