pawn Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
#include <sscanf2>
#include <streamer>
new Text:Time, Text:Date;
#if defined FILTERSCRIPT
#define DEIALOG_ID 7777
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Updated Version! WORLDCLOCK+DATE By ED");
print("--------------------------------------\n");
SetTimer("settime",1000,true);
Date = TextDrawCreate(547.000000,11.000000,"--");
TextDrawFont(Date,3);
TextDrawLetterSize(Date,0.399999,1.600000);
TextDrawColor(Date,0xffffffff);
Time = TextDrawCreate(547.000000,28.000000,"--");
TextDrawFont(Time,3);
TextDrawLetterSize(Time,0.399999,1.600000);
TextDrawColor(Time,0xffffffff);
SetTimer("settime",1000,true);
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}
#endif
public OnGameModeInit()
{
SetGameModeText("Nac ieksa");
ShowPlayerMarkers(PLAYER_MARKERS_MODE_GLOBAL);
ShowNameTags(1);
SetNameTagDrawDistance(40.0);
EnableStuntBonusForAll(0);
SetWeather(2);
SetWorldTime(11);
//UsePlayerPedAnims();
//ManualVehicleEngineAndLights();
//LimitGlobalChatRadius(300.0);
// Player Class
AddPlayerClass(281,1582.3536,-1680.6898,5.8970,299.8679,0,0,0,0,0,0);
AddPlayerClass(282,1582.3536,-1680.6898,5.8970,299.8679,0,0,0,0,0,0);
AddPlayerClass(283,1582.3536,-1680.6898,5.8970,299.8679,0,0,0,0,0,0);
AddPlayerClass(284,1582.3536,-1680.6898,5.8970,299.8679,0,0,0,0,0,0);
AddPlayerClass(285,1582.3536,-1680.6898,5.8970,299.8679,0,0,0,0,0,0);
AddPlayerClass(286,1582.3536,-1680.6898,5.8970,299.8679,0,0,0,0,0,0);
AddPlayerClass(287,1582.3536,-1680.6898,5.8970,299.8679,0,0,0,0,0,0);
AddPlayerClass(288,1582.3536,-1680.6898,5.8970,299.8679,0,0,0,0,0,0);
AddPlayerClass(289,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(265,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(266,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(267,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(268,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(269,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(270,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(1,11174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(2,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(3,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(4,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(5,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(6,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(8,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(42,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(65,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(74,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(86,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(119,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(149,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(208,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(273,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(289,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(47,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(48,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(49,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(50,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(51,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(52,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(53,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(54,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(55,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(56,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(57,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(58,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(68,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(69,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(70,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(71,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(72,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(73,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(75,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(76,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(78,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(79,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(80,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(81,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(82,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(83,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(84,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(85,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(87,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(88,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(89,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(91,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(92,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(93,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(95,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(96,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(97,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(98,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
AddPlayerClass(99,1174.7642,-1323.8352,14.5938,275.4131,0,0,0,0,0,0);
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1174.7642,-1323.8352,14.5938);
SetPlayerCameraPos(playerid, 1178.9819,-1323.8173,14.1469);
SetPlayerCameraLookAt(playerid, 1174.7642,-1323.8352,14.5938);
return 1;
}
public OnPlayerConnect(playerid)
{
GameTextForPlayer(playerid,"~r~Ezis ielida ala,un pasaka ir gala!",3000,4);
SendClientMessage(playerid,0x33FF33AA,"Laipni lugts {88AA88}R{FFFFFF}ealaja {88AA88}D{FFFFFF}zive");
new string[254];
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername ,sizeof(playername));
format(string, sizeof(string), "Speletajs %s pievienojas serverim!", playername);
SendClientMessageToAll(0xE100E1FF, string);
SetPlayerColor(playerid,0xFFFFFFAA);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
new pname[MAX_PLAYER_NAME], string[39 + MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
switch(reason)
{
case 0: format(string, sizeof(string), "%s pameta serveri. (Zaudeja savienojumu)", pname);
case 1: format(string, sizeof(string), "%s pameta serveri. (Izgaja)", pname);
case 2: format(string, sizeof(string), "%s pameta serveri. (Kick/Ban)", pname);
}
SendClientMessageToAll(0xE100E1FF, string);
TextDrawHideForPlayer(playerid, Time), TextDrawHideForPlayer(playerid, Date);
return 1;
}
public OnPlayerSpawn(playerid)
{
SendClientMessage(playerid, 0xF97804FF, "Lasi /updates un /rules!");
TextDrawShowForPlayer(playerid, Time), TextDrawShowForPlayer(playerid, Date);
return 1;
}
public OnPlayerUpdate(playerid)
{
if(GetPlayerWantedLevel (playerid) == 1 || GetPlayerWantedLevel(playerid) == 2 || GetPlayerWantedLevel(playerid) == 3)
{
SetPlayerColor(playerid, 0xFFFF00AA); //yellow
}
else if(GetPlayerWantedLevel(playerid) == 4 ||GetPlayerWantedLevel(playerid) == 5 || GetPlayerWantedLevel(playerid) == 6)
{
SetPlayerColor(playerid, 0xFF0000FF); //red
}
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(cmdtext, "/help", true))
{
SendClientMessage(playerid, 0xFFFFFFFF, "SERVERIS:Laipni lugts serveri,Galvena valoda Latviesu anglu raksti/RULES.");
SendClientMessage(playerid, 0xFFFFFFFF, "SERVERIS:Ja ir kadi ieteikumi,ka uzlabot serveri raksti adminam un iespejams tava ideja tiks uzklausita.");
SendClientMessage(playerid, 0xFFFFFFFF, "SERVERIS:Mums galvenais lietotaja domas un mums katra ideja ir svariga!.");
SendClientMessage(playerid, 0xFF9933AA, "SERVERIS:Pamanijat kad ietriecaties jums atnemas dzivibas:/seatbelt-{piespredzeties}");
SendClientMessage(playerid, 0xFF9933AA, "SERVERIS:CMD:Benzintanks:/fill-daudzums(max 100) /buyfuel-nopirkt gazes balonu /usefuel-lietot balonu.");
SendClientMessage(playerid, 0xFF9933AA, "SERVERIS:CMD:Animacijas:(to ir padaudz) raksti/anims.");
SendClientMessage(playerid, 0xFF9933AA, "SERVERIS:CMD:Masina:/carhelp-masinas komandas /setplate-nomainit numuru.");
SendClientMessage(playerid, 0xFF9933AA, "SERVERIS:CMD:Anti-garlaiciba:/radio-klausies muziku serveri /tspawn-brauciens ar titaniku{drikst braukt kad admins ir on}");
SendClientMessage(playerid, 0xFF9933AA, "SERVERIS:CMD:Narkotiku sistema/Drughelp-visas komandas{kad iestadisisi narkotikas vinas augs grove street raidera pagalma /drinklist-{dzerieni}.");
return 1;
// Returning 1 informs the server that the command has been processed.
// OnPlayerCommandText won't be called in other scripts.
}
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 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;
}
public settime(playerid)
{
new string[256],year,month,day,hours,minutes,seconds;
getdate(year, month, day), gettime(hours, minutes, seconds);
format(string, sizeof string, "%d/%s%d/%s%d", day, ((month < 10) ? ("0") : ("")), month, (year < 10) ? ("0") : (""), year);
TextDrawSetString(Date, string);
format(string, sizeof string, "%s%d:%s%d:%s%d", (hours < 10) ? ("0") : (""), hours, (minutes < 10) ? ("0") : (""), minutes, (seconds < 10) ? ("0") : (""), seconds);
TextDrawSetString(Time, string);
}
Your signature's code is erroneous.
Don't just copy and paste code. If your coding knowledge isn't up to par to even catch a simple error like the one provided, then I'd suggest getting someone else to do it.
for me all normal players whitch not cops are white,but cops are too still wite can you please fix in gamemode log ?