Well first of all, you are using both OnGameModeInit and OnFilterscriptInit..
pawn Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
#include <removebuilding>
#include <streamer>
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
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);
CreateDynamicObject(5762, 1918.45, -1776.04, 15.62, 0.00, 0.00, 89.94);
CreateDynamicObject(1532, 1928.36, -1776.72, 12.47, 0.00, 0.00, 89.93);
CreateDynamicObject(12853, 2147.28, -1727.88, 14.42, 0.00, 0.00, 90.63);
CreateDynamicObject(17951, 2151.50, -1732.30, 13.99, 0.00, 0.00, 90.50);
CreateDynamicObject(2942, 2157.98, -1733.14, 13.18, 0.00, 0.00, 0.00);
CreateDynamicObject(1676, 2153.20, -1738.81, 14.06, 0.00, 0.00, 0.00);
CreateDynamicObject(1676, 2141.32, -1739.19, 14.06, 0.00, 0.00, 0.00);
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)
{
RemoveBuilding(5535, 1918.8516, -1776.3281, 16.9766, 0.25);
RemoveBuilding(5551, 2140.5156, -1735.1406, 15.8906, 0.25);
RemoveBuilding(1524, 1910.1641, -1779.6641, 18.7500, 0.25);
RemoveBuilding(5681, 1921.4844, -1778.9141, 18.5781, 0.25);
RemoveBuilding(5409, 1918.8516, -1776.3281, 16.9766, 0.25);
RemoveBuilding(1676, 1941.6563, -1778.4531, 14.1406, 0.25);
RemoveBuilding(1676, 1941.6563, -1774.3125, 14.1406, 0.25);
RemoveBuilding(955, 1928.7344, -1772.4453, 12.9453, 0.25);
RemoveBuilding(1676, 1941.6563, -1771.3438, 14.1406, 0.25);
RemoveBuilding(1676, 1941.6563, -1767.2891, 14.1406, 0.25);
RemoveBuilding(5410, 2140.5156, -1735.1406, 15.8906, 0.25);
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 OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
// Do something here
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;
}