This error . :( .
#1

First off , I will give you the whole details .

This is the game mode .
/*


Код:
*/

#include <a_samp>
#include <streamer>
#include <zcmd>

#define DIALOG_RULES      0
#define DIALOG_PDETAILS   1
#define DIALOG_YDETAILS   2
#define DIALOG_TMENU      3
#define DIALOG_MJSHOP     4
#define DIALOG_SCORE      5
#define DIALOG_DRINK      6
#define DIALOG_FOOD       7
#define DIALOG_INFO       8

new count = 0;

new IsPlayerSmoking[MAX_PLAYERS];
new IsBAGUVIXAllowed[MAX_PLAYERS];
new IsFULLCLIPAllowed[MAX_PLAYERS];
new IsAEZAKMIAllowed[MAX_PLAYERS];
new IsPlayerVehicleLocked[MAX_PLAYERS];
new IsPlayerWearingHelmet[MAX_PLAYERS];
new IsPlayerEating[MAX_PLAYERS];
new IsPlayerBoughtScore[MAX_PLAYERS];
new IsPlayerInJetPack[MAX_PLAYERS];
new IsPlayerReadRules[MAX_PLAYERS];
new IsPlayerAFK[MAX_PLAYERS];
new IsPlayerDead[MAX_PLAYERS];

new Text:MJLogo;
new Text:HelpLogo;
new Text:Worldtime;

forward Nitro();
forward Worldclock();

/* -------------------------------------------------------------------------- */

#define white "{FFFFFF}"
#define red "{FF002B}"
#define pink "{FF00D9}"
#define purple "{DFA7F2}"
#define blue "{A1C2FF}"
#define green "{3DE3B1}"
#define yellow "{FAF623}"
#define black "{69670C}"
#define orange "{F2C80C}"
#define ice "{03F2FF}"
#define lime "{00FF40}"

#define COLOR_WHITE 0xFFFFFFFF
#define COLOR_ORANGE 0xFF8000FF
#define COLOR_RED 0xFF0000FF
#define COLOR_PINK 0xFF80FFFF
#define COLOR_YELLOW 0xFFFF00FF
#define COLOR_GREEN 0x008000FF
#define COLOR_LIGHTGREEN 0x00FF00FF
#define COLOR_BLACK 0x000000FF
#define COLOR_BLUE 0x0080FFFF

#if defined FILTERSCRIPT

#else

main()
{
	print("* ---------------------------------- *");
	print("     MasterJoker's Simple GM v1.0     ");
	print("       Created by MasterJoker         ");
	print("          Copyright, (2012)           ");
	print("   Editing/Adding/Removing without    ");
	print("      my permission, you will be      ");
	print("               warn                   ");
	print("* ---------------------------------- *");
}

#endif

public OnGameModeInit()
{
	/* Related to Server */

    SetTimer("Nitro", 2000, true);
    SetTimer("Worldclock", 1000, true);

    MJLogo = TextDrawCreate(9.000000, 429.000000, "Hackers and Cheaters [0.3z]");
    TextDrawBackgroundColor(MJLogo, 255);
    TextDrawFont(MJLogo, 2);
    TextDrawLetterSize(MJLogo, 0.350000, 1.600000);
    TextDrawColor(MJLogo, 16711935);
    TextDrawSetOutline(MJLogo, 0);
    TextDrawSetProportional(MJLogo, 1);
    TextDrawSetShadow(MJLogo, 1);
    TextDrawUseBox(MJLogo, 1);
    TextDrawBoxColor(MJLogo, 255);
    TextDrawTextSize(MJLogo, 248.000000, -2.000000);

    HelpLogo = TextDrawCreate(558.000000, 427.000000, "/help");
    TextDrawBackgroundColor(HelpLogo, 255);
    TextDrawFont(HelpLogo, 1);
    TextDrawLetterSize(HelpLogo, 0.620000, 1.700000);
    TextDrawColor(HelpLogo, -16776961);
    TextDrawSetOutline(HelpLogo, 0);
    TextDrawSetProportional(HelpLogo, 1);
    TextDrawSetShadow(HelpLogo, 1);
    TextDrawUseBox(HelpLogo, 1);
    TextDrawBoxColor(HelpLogo, 255);
    TextDrawTextSize(HelpLogo, 609.000000, 9.000000);
    
    Worldtime = TextDrawCreate(547.0, 24.0, "--:--");
    TextDrawLetterSize(Worldtime, 0.6, 1.8);
    TextDrawFont(Worldtime, 3);
    TextDrawSetOutline(Worldtime, 2);
	
	SetGameModeText("MJ's GM v1.0");
	UsePlayerPedAnims();
	for(new skinid = 0; skinid < 300; skinid++)
    {
       if(IsValidSkin(skinid))
       {
          AddPlayerClass(skinid, 0,0,0,0,0,0,0,0,0,0);
       }
    }
	return 1;
}

public OnGameModeExit()
{
	return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
	PlayerPlaySound(playerid, 1185, 81.1910, 149.6861, 2.4297);
	SetPlayerPos(playerid, 81.1910,149.6861,2.4297);
	SetPlayerFacingAngle(playerid, 210.9970);
	SetPlayerCameraPos(playerid, 83.6877,145.0083,2.4297);
	SetPlayerCameraLookAt(playerid, 81.1910,149.6861,2.4297);
	return 1;
}

public OnPlayerConnect(playerid)
{
	new string[120],pname[MAX_PLAYER_NAME];
	IsPlayerDead[playerid] = 0; IsPlayerAFK[playerid] = 0; IsPlayerInJetPack[playerid] = 0;
    IsPlayerSmoking[playerid] = 0; IsPlayerReadRules[playerid] = 0; IsPlayerEating[playerid] = 0;
    IsPlayerBoughtScore[playerid] = 0; IsPlayerWearingHelmet[playerid] = 0; IsPlayerVehicleLocked[playerid] = 0;
    IsAEZAKMIAllowed[playerid] = 0; IsFULLCLIPAllowed[playerid] = 0; IsBAGUVIXAllowed[playerid] = 0;
	count++;
	GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
	SetPlayerColor(playerid, COLOR_RED);
	format(string,sizeof(string), "Welcome %s to Hackers And Cheaters, You are player number %d", pname, count);
	SendClientMessage(playerid, COLOR_WHITE, string);
	SendClientMessage(playerid, COLOR_WHITE, "Hackers And Cheaters . Build|30");
	format(string,sizeof(string), "%s has joined Hackers and cheaters (Player Number: %d)", pname, count);
	SendClientMessageToAll(COLOR_RED, string);
	SendDeathMessage(INVALID_PLAYER_ID, playerid, 200);
	TextDrawShowForPlayer(playerid, MJLogo);
	TextDrawShowForPlayer(playerid, Worldtime);
	return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
	new string[120],pname[MAX_PLAYER_NAME];
	GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
	count--;
	switch(reason)
	{
		case 0: format(string,sizeof(string), "%s has left Hackers And Cheaters (Reason: Timed out/Crash) (%d Player Number left)", pname, count);
		case 1: format(string,sizeof(string), "%s has left Hackers And Cheaters (Reason: Leaving) (%d Player Number left)", pname, count);
		case 2: format(string,sizeof(string), "%s has left Hackers And Cheaters (Reason: Kicked/Banned) (%d Player Number left)", pname, count);
	}
	SendClientMessageToAll(COLOR_RED, string);
	SendDeathMessage(INVALID_PLAYER_ID, playerid, 200);
	IsPlayerDead[playerid] = 0; IsPlayerAFK[playerid] = 0; IsPlayerInJetPack[playerid] = 0;
	return 1;
}

public OnPlayerSpawn(playerid)
{
	IsPlayerDead[playerid] = 0;
    PlayerPlaySound(playerid, 1186, -113.0159,-315.0506,2.7646);
    SetPlayerHealth(playerid, 100);
    SetPlayerArmour(playerid, 100);
    SetPlayerPos(playerid, -113.0159,-315.0506,2.7646);
    SetPlayerFacingAngle(playerid, 140.9780);
    SetCameraBehindPlayer(playerid);
	return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
	IsPlayerDead[playerid] = 1;
    SendDeathMessage(killerid, playerid, reason);
    GameTextForPlayer(playerid, "~w~Wasted", 1500, 2);
    SetPlayerScore(killerid, GetPlayerScore(playerid) + 1);
    GivePlayerMoney(killerid, 100000);
    if(IsAEZAKMIAllowed[playerid] == 0)
    {
       SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(playerid) + 1);
    }
    else SetPlayerWantedLevel(killerid, 0);
	return 1;
}

public OnVehicleSpawn(vehicleid)
{
	return 1;
}

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

public OnPlayerText(playerid, text[])
{
	new string[128],pname[MAX_PLAYER_NAME];
	new to_others[MAX_CHATBUBBLE_LENGTH+1];
	GetPlayerName(playerid, pname, sizeof(pname));
	
	if(IsPlayerAFK[playerid] == 1)
	{
		 format(string, sizeof(string), "[AFK] %s"white"(ID:%d): %s", pname, playerid, text);
		 SendClientMessageToAll(GetPlayerColor(playerid), string);
	}
	else
	{
		 format(string, sizeof(string), "%s"white"(ID:%d): %s", pname, playerid, text);
		 SendClientMessageToAll(GetPlayerColor(playerid), string);
	}
	format(to_others,MAX_CHATBUBBLE_LENGTH,"Says: %s",text);
	SetPlayerChatBubble(playerid, to_others, COLOR_WHITE, 10.0, 20000);
	return 0;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
	new vid = GetVehicleModel(vehicleid);
	new string[128],pname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname, sizeof(pname));
	if(vid == 448 || vid == 461 || vid == 462 || vid == 463 || vid == 468 || vid == 471 ||
	vid == 481 || vid == 509 || vid == 510 || vid == 521 || vid == 522 || vid == 523 ||
	vid == 571 || vid == 581 || vid == 586)
	{
	      if(IsPlayerWearingHelmet[playerid] == 0)
	      {
			  IsPlayerWearingHelmet[playerid] = 1;
			  format(string, sizeof(string), "%s has wore his helmet (Safety Recommended!)", pname);
			  SendClientMessageToAll(COLOR_RED, string);
			  SendClientMessage(playerid, COLOR_GREEN, "Helmet sucessfully suited!");
              SetPlayerAttachedObject(playerid, 1, 18645, 2, 0.07, 0, 0, 88, 75, 0);
          }
    }
	return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
	new string[128],pname[MAX_PLAYER_NAME];
	GetPlayerName(playerid, pname, sizeof(pname));
	if(IsPlayerWearingHelmet[playerid] == 1)
	{
        if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
        IsPlayerWearingHelmet[playerid] = 0;
		format(string, sizeof(string), "%s has removed his helmet", pname);
		SendClientMessageToAll(COLOR_RED, string);
		SendClientMessage(playerid, COLOR_GREEN, "Helmet sucessfully removed!");
	}
	IsPlayerVehicleLocked[playerid] = 0;
	return 1;
}

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

public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
	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)
{
	if(newkeys & KEY_FIRE)
	{
		if(GetPlayerSpecialAction(playerid) == 2)
		{
			 if(IsPlayerInJetPack[playerid] == 0) return 0;
			 SendClientMessage(playerid, COLOR_RED, "You have been Reject from your JetPack!");
			 GivePlayerWeapon(playerid, 46, 0);
			 SetPlayerSpecialAction(playerid, 0);
			 IsPlayerInJetPack[playerid] = 0;
		}
	}
	return 1;
}

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

public OnPlayerUpdate(playerid)
{
    if(GetPlayerSpecialAction(playerid) == 2)
	{
        IsPlayerInJetPack[playerid] = 1;
	}
    else IsPlayerInJetPack[playerid] = 0;
	return 1;
}

public Nitro()
{
    new vehicleid;
	for(new i=0;i<MAX_PLAYERS;i++)
	{
	    if(IsPlayerConnected(i))
	    {
	        if(GetPlayerState(i)==2)
	        {
	            vehicleid= GetPlayerVehicleID(i);
	    		if(CheckVehicle(vehicleid))
				AddVehicleComponent(vehicleid,1010);
			}
		}
	}
	return 0;
}

public Worldclock()
{
    new hour,minute,second;
    new string[256];
    gettime(hour,minute,second);
    if (minute <= 9){format(string,25,"%d:0%d",hour,minute);}
    else {format(string,25,"%d:%d",hour,minute);}
    TextDrawSetString(Worldtime,string);
    SetWorldTime(hour);
    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[])
{
    new string[128],pname[MAX_PLAYER_NAME],Float:x,Float:y,Float:z,Float:myhealth;
	GetPlayerPos(playerid, x, y, z);
	GetPlayerHealth(playerid, myhealth);
    GetPlayerName(playerid, pname, sizeof(pname));

	if(dialogid == DIALOG_TMENU)
	{
		 if(!response) return 0;
		 switch(listitem)
		 {
			 case 0:
			 {
			 	 format(string, sizeof(string), "%s has teleport to Default Spawnpoint (/home)", pname);
	             SendClientMessageToAll(COLOR_RED, string);
	             GameTextForPlayer(playerid, "~n~~r~Default Spawnpoint (/Home)", 1300, 4);
	             PlayerPlaySound(playerid,1085, x, y, z);
	             if(IsPlayerInAnyVehicle(playerid))
	             {
		              SetVehiclePos(GetPlayerVehicleID(playerid), -102.0409,-321.9538,1.1265);
	                  SetVehicleZAngle(GetPlayerVehicleID(playerid), 133.0508);
	             }
	             else {
                      SetPlayerPos(playerid, -113.0159,-315.0506,2.7646);
                      SetPlayerFacingAngle(playerid, 140.9780);
	             }
			 }
		 }
	}
	
	if(dialogid == DIALOG_MJSHOP)
	{
		 if(!response) return 0;
		 switch(listitem)
		 {
			 case 0: ShowPlayerDialog(playerid, DIALOG_SCORE, DIALOG_STYLE_LIST, "Score", "50 Score (Coast $900,000)\n100 Score (Coast $1,000,000)\n500 Score (Coast $5,000,000)\n1000 Score (Coast $500,000,000)", "Buy", "Back");
			 case 1: ShowPlayerDialog(playerid, DIALOG_DRINK, DIALOG_STYLE_LIST, "Drink", "Sprunk\nBeer\nWine", "Buy", "Back");
			 case 2:
             {
                 if(IsPlayerSmoking[playerid] == 1) return SendClientMessage(playerid, COLOR_RED, "You already have a cigarrete!");
                 if(!strcmp(pname, "MasterJoker", true))
                 {
					 SendClientMessage(playerid, COLOR_GREEN, "You get a cigarrete for free! (Your the owner! :D)");
                     SetPlayerSpecialAction(playerid, SPECIAL_ACTION_SMOKE_CIGGY);
				     IsPlayerSmoking[playerid] = 1;
				     return 0;
				 }
				 if(GetPlayerMoney(playerid) > 5) return SendClientMessage(playerid, COLOR_RED, "You do not have $5 dollar to buy cigarrete");
				 GivePlayerMoney(playerid, -5);
				 SendClientMessage(playerid, COLOR_GREEN, "You bought the cigarrete you pay $5 to the seller!");
				 SetPlayerSpecialAction(playerid, SPECIAL_ACTION_SMOKE_CIGGY);
				 IsPlayerSmoking[playerid] = 1;
			 }
			 case 3:  ShowPlayerDialog(playerid, DIALOG_FOOD, DIALOG_STYLE_LIST, "Food", "Chicken\nBurger\nPizza", "Buy", "Back");
			 case 4:
			 {
				 ShowPlayerDialog(playerid, DIALOG_INFO, DIALOG_STYLE_MSGBOX, "Cleo's Shop", "This shop is owned by Cleo Hacks\nPlease make sure you have money\nbefore buying!\nGreetings from Eclipse!", "OK", "");
			 }
		 }
	}
	
	if(dialogid == DIALOG_DRINK)
	{
		 if(!response) return ShowPlayerDialog(playerid, DIALOG_MJSHOP, DIALOG_STYLE_LIST, "Cleo's SHOP", "Score\nDrink\nCigarrete\nFood\nInformation", "Choose", "Cancel");
		 switch(listitem) {
		 case 0:
		 {
                 if(!strcmp(pname, "MasterJoker", true))
                 {
					 SendClientMessage(playerid, COLOR_GREEN, "You get a Sprunk for free! (Your the owner! :D)");
                     SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
				     return 0;
				 }
				 if(GetPlayerMoney(playerid) > 10) return SendClientMessage(playerid, COLOR_RED, "You do not have $10 dollar to buy sprunk!");
				 GivePlayerMoney(playerid, -10);
				 SendClientMessage(playerid, COLOR_GREEN, "You bought sprunk you pay $10 to the saler!");
				 SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
		 }
		 case 1:
		 {
                 if(!strcmp(pname, "MasterJoker", true))
                 {
					 SendClientMessage(playerid, COLOR_GREEN, "You get a Beer for free! (Your the owner! :D)");
                     SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER);
				     return 0;
				 }
				 if(GetPlayerMoney(playerid) > 10) return SendClientMessage(playerid, COLOR_RED, "You do not have $10 dollar to buy beer!");
				 GivePlayerMoney(playerid, -10);
				 SendClientMessage(playerid, COLOR_GREEN, "You bought beer you pay $10 to the saler!");
				 SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER);
		 }
		 case 2:
		 {
                 if(!strcmp(pname, "MasterJoker", true))
                 {
					 SendClientMessage(playerid, COLOR_GREEN, "You get a Wine for free! (Your the owner! :D)");
                     SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_WINE);
				     return 0;
				 }
				 if(GetPlayerMoney(playerid) > 10) return SendClientMessage(playerid, COLOR_RED, "You do not have $10 dollar to buy wine!");
				 GivePlayerMoney(playerid, -10);
				 SendClientMessage(playerid, COLOR_GREEN, "You bought wine you pay $10 to the saler!");
				 SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_WINE);
		 }
		 }
	}
	
	if(dialogid == DIALOG_SCORE)
	{
		 if(!response) return ShowPlayerDialog(playerid, DIALOG_MJSHOP, DIALOG_STYLE_LIST, "Cleo's SHOP", "Score\nDrink\nCigarrete\nFood\nInformation", "Choose", "Cancel");
		 switch(listitem)
		 {
			 case 0:
			 {
				 if(IsPlayerBoughtScore[playerid] == 1) return SendClientMessage(playerid, COLOR_RED, "You can only buy a score one at a time!");
                 if(!strcmp(pname, "MasterJoker", true))
                 {
					 SendClientMessage(playerid, COLOR_GREEN, "You get a 50 score for free! (Your the owner! :D)");
                     SetPlayerScore(playerid, GetPlayerScore(playerid) + 50);
				     IsPlayerBoughtScore[playerid] = 1;
				     return 0;
				 }
				 if(GetPlayerMoney(playerid) > 900000) return SendClientMessage(playerid, COLOR_RED, "You do not have $900,000 dollar to buy 50 score!");
				 GivePlayerMoney(playerid, -900000);
				 SendClientMessage(playerid, COLOR_GREEN, "You bought 50 score you pay $900,000 to the saler!");
				 SetPlayerScore(playerid, GetPlayerScore(playerid) + 50);
				 IsPlayerBoughtScore[playerid] = 1;
			 }
			 case 1:
			 {
				 if(IsPlayerBoughtScore[playerid] == 1) return SendClientMessage(playerid, COLOR_RED, "You can only buy a score one at a time!");
                 if(!strcmp(pname, "MasterJoker", true))
                 {
					 SendClientMessage(playerid, COLOR_GREEN, "You get a 100 score for free! (Your the owner! :D)");
                     SetPlayerScore(playerid, GetPlayerScore(playerid) + 100);
				     IsPlayerBoughtScore[playerid] = 1;
				     return 0;
				 }
				 if(GetPlayerMoney(playerid) > 1000000) return SendClientMessage(playerid, COLOR_RED, "You do not have $1,000,000 dollar to buy 1,000 score!");
				 GivePlayerMoney(playerid, -1000000);
				 SendClientMessage(playerid, COLOR_GREEN, "You bought 100 score you pay $1,000,000 to the saler!");
				 SetPlayerScore(playerid, GetPlayerScore(playerid) + 100);
				 IsPlayerBoughtScore[playerid] = 1;
			 }
			 case 2:
			 {
				 if(IsPlayerBoughtScore[playerid] == 1) return SendClientMessage(playerid, COLOR_RED, "You can only buy a score one at a time!");
                 if(!strcmp(pname, "MasterJoker", true))
                 {
					 SendClientMessage(playerid, COLOR_GREEN, "You get a 500 score for free! (Your the owner! :D)");
                     SetPlayerScore(playerid, GetPlayerScore(playerid) + 500);
				     IsPlayerBoughtScore[playerid] = 1;
				     return 0;
				 }
				 if(GetPlayerMoney(playerid) > 5000000) return SendClientMessage(playerid, COLOR_RED, "You do not have $5,000,000 dollar to buy 500 score!");
				 GivePlayerMoney(playerid, -5000000);
				 SendClientMessage(playerid, COLOR_GREEN, "You bought 500 score you pay $5,000,000 to the saler!");
				 SetPlayerScore(playerid, GetPlayerScore(playerid) + 500);
				 IsPlayerBoughtScore[playerid] = 1;
			 }
			 case 3:
			 {
				 if(IsPlayerBoughtScore[playerid] == 1) return SendClientMessage(playerid, COLOR_RED, "You can only buy a score one at a time!");
                 if(!strcmp(pname, "MasterJoker", true))
                 {
					 SendClientMessage(playerid, COLOR_GREEN, "You get a 1000 score for free! (Your the owner! :D)");
                     SetPlayerScore(playerid, GetPlayerScore(playerid) + 1000);
				     IsPlayerBoughtScore[playerid] = 1;
				     return 0;
				 }
				 if(GetPlayerMoney(playerid) > 1000000000) return SendClientMessage(playerid, COLOR_RED, "You do not have $1,000,000,000 dollar to buy 1,000 score!");
				 GivePlayerMoney(playerid, -1000000000);
				 SendClientMessage(playerid, COLOR_GREEN, "You bought 1000 score you pay $1,000,000,000 to the saler!");
				 SetPlayerScore(playerid, GetPlayerScore(playerid) + 1000);
				 IsPlayerBoughtScore[playerid] = 1;
			 }
		 }
	}
	
	if(dialogid == DIALOG_FOOD)
	{
		 if(!response) return ShowPlayerDialog(playerid, DIALOG_MJSHOP, DIALOG_STYLE_LIST, "Cleo's SHOP", "Score\nDrink\nCigarrete\nFood\nInformation", "Choose", "Cancel");
		 switch(listitem)
		 {
			 case 0:
			 {
                 if(IsPlayerEating[playerid] == 5) return SendClientMessage(playerid, COLOR_RED, "You can only eat up to 5 meals!");
                 if(!strcmp(pname, "MasterJoker", true))
                 {
					 SendClientMessage(playerid, COLOR_GREEN, "You get a Chicken for free! (Your the owner! :D)");
                     ApplyAnimation(playerid, "FOOD", "EAT_Chicken", 4.0,0,0,0,0,0,0);
                     SetPlayerHealth(playerid, myhealth + 5.0);
				     IsPlayerEating[playerid]++;
				     return 0;
				 }
				 if(GetPlayerMoney(playerid) > 50) return SendClientMessage(playerid, COLOR_RED, "You do not have $50 dollar to buy Chicken Meal!");
				 SendClientMessage(playerid, COLOR_GREEN, "You bought the Chicken Meal you pay $50 dollar to the saler!");
				 ApplyAnimation(playerid, "FOOD", "EAT_Chicken", 4.0,0,0,0,0,0,0);
                 SetPlayerHealth(playerid, myhealth + 5.0);
				 GivePlayerMoney(playerid, -50);
				 IsPlayerEating[playerid]++;
			 }
			 case 1:
			 {
                 if(IsPlayerEating[playerid] == 5) return SendClientMessage(playerid, COLOR_RED, "You can only eat up to 5 meals!");
                 if(!strcmp(pname, "MasterJoker", true))
                 {
					 SendClientMessage(playerid, COLOR_GREEN, "You get a Burger for free! (Your the owner! :D)");
                     ApplyAnimation(playerid, "FOOD", "EAT_Burger", 4.0,0,0,0,0,0,0);
                     SetPlayerHealth(playerid, myhealth + 5.0);
				     IsPlayerEating[playerid]++;
				     return 0;
				 }
				 if(GetPlayerMoney(playerid) > 20) return SendClientMessage(playerid, COLOR_RED, "You do not have $50 dollar to buy Burger Meal!");
				 SendClientMessage(playerid, COLOR_GREEN, "You bought Burger Meal you pay $20 dollar to the saler!");
				 ApplyAnimation(playerid, "POOD", "EAT_Burger", 4.0,0,0,0,0,0,0);
				 SetPlayerHealth(playerid, myhealth + 5.0);
				 GivePlayerMoney(playerid, -20);
				 IsPlayerEating[playerid]++;
			 }
			 case 2:
			 {
                 if(IsPlayerEating[playerid] == 5) return SendClientMessage(playerid, COLOR_RED, "You can only eat up to 5 meals!");
                 if(!strcmp(pname, "MasterJoker", true))
                 {
					 SendClientMessage(playerid, COLOR_GREEN, "You get a Pizza for free! (Your the owner! :D)");
                     ApplyAnimation(playerid, "FOOD", "EAT_Pizza", 4.0,0,0,0,0,0,0);
                     SetPlayerHealth(playerid, myhealth + 5.0);
				     IsPlayerEating[playerid]++;
				     return 0;
				 }
				 if(GetPlayerMoney(playerid) > 100) return SendClientMessage(playerid, COLOR_RED, "You do not have $100 dollar to buy Pizza!");
				 SendClientMessage(playerid, COLOR_GREEN, "You bought Pizza you pay $100 dollar to the saler!");
				 ApplyAnimation(playerid, "FOOD", "EAT_Pizza", 4.0,0,0,0,0,0,0);
				 SetPlayerHealth(playerid, myhealth + 5.0);
				 GivePlayerMoney(playerid, -100);
				 IsPlayerEating[playerid]++;
			 }
		 }
	}
	return 1;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
	new string[128],string2[60],string3[128],pname[MAX_PLAYER_NAME],pname2[MAX_PLAYER_NAME],id;
	new MyScore,MyCash,MyPing,MyScore2,MyCash2,MyPing2;
	MyScore = GetPlayerScore(id);
	MyCash = GetPlayerMoney(id);
	MyPing = GetPlayerPing(id);
	MyScore2 = GetPlayerScore(playerid);
	MyCash2 = GetPlayerMoney(playerid);
	MyPing2 = GetPlayerPing(playerid);
	GetPlayerName(id, pname, MAX_PLAYER_NAME);
	GetPlayerName(playerid, pname2, MAX_PLAYER_NAME);
	if(clickedplayerid == playerid)
	{
		 SendClientMessage(playerid, COLOR_RED, "You clicked yourself . However , Your details will be still showed!");
		 format(string3, sizeof(string3), "Name: %s\nID: %d\nScore: %d\nCash: %i$\nPing: %d", pname2, playerid, MyScore2, MyCash2, MyPing2);
		 ShowPlayerDialog(playerid, DIALOG_YDETAILS, DIALOG_STYLE_MSGBOX, "Your Status", string3, "OK", "");
		 return 0;
	}
	format(string2, sizeof(string2), "You clicked on %s's Details", pname);
	SendClientMessage(playerid, COLOR_WHITE, string2);
	format(string2, sizeof(string2), "%s's Deatils", pname);
	format(string, sizeof(string), "Name: %s\nID: %d\nScore: %d\nCash: %i$\nPing: %d", pname, id, MyScore, MyCash, MyPing);
	ShowPlayerDialog(playerid, DIALOG_PDETAILS, DIALOG_STYLE_MSGBOX, string2, string, "OK", "");
	return 1;
}

/* Server Commands */

CMD:mjshop(playerid, params[])
{
	 if(IsPlayerAFK[playerid] == 1) return SendClientMessage(playerid, COLOR_RED, "You cannot buy any stuff while Away from your keyboard!");
	 ShowPlayerDialog(playerid, DIALOG_MJSHOP, DIALOG_STYLE_LIST, "Cleo's SHOP", "Score\nDrink\nCigarrete\nFood\nInformation", "Choose", "Cancel");
	 return 1;
}

CMD:cheats(playerid, params[])
{
	 if(GetPlayerScore(playerid) > 10000)
	 {
	     SendClientMessage(playerid, COLOR_YELLOW, "----- | - Hackers And Cheaters , Cheats ! - | -----");
	     SendClientMessage(playerid, COLOR_WHITE, "/Hesoyam, /Baguvix, /AEZAKMI, /FULLCLIP");
     }
     else return SendClientMessage(playerid, COLOR_RED, "You must have 10,000 score to see SAMP Cheats!");
	 return 1;
}

CMD:hesoyam(playerid, params[])
{
	 if(GetPlayerScore(playerid) > 10000)
	 {
	    SetPlayerHealth(playerid, 100);
	    SetPlayerArmour(playerid, 100);
        GivePlayerMoney(playerid, 250000);
	    GameTextForPlayer(playerid, "~g~Cheat Activated!", 1300, 4);
	 }
     else return SendClientMessage(playerid, COLOR_RED, "You must have 10,000 score to see SAMP Cheats!");
	 return 1;
}

CMD:baguvix(playerid, params[])
{
	 if(GetPlayerScore(playerid) > 10000)
	 {
	    if(IsPlayerAFK[playerid] == 1) return SendClientMessage(playerid, COLOR_RED, "You cannot use any command while Away from your keyboard!");
		if(IsBAGUVIXAllowed[playerid] == 0)
		{
		   SetPlayerHealth(playerid, 1000);
	       GameTextForPlayer(playerid, "~g~Cheat Activated!", 1300, 4);
		   IsBAGUVIXAllowed[playerid] = 1;
		}
		else
		{
		   SetPlayerHealth(playerid, 100);
	       GameTextForPlayer(playerid, "~r~Cheat deactivated!", 1300, 4);
		   IsBAGUVIXAllowed[playerid] = 0;
		}
	 }
	 else return SendClientMessage(playerid, COLOR_RED, "You must have 10,000 score to see SAMP Cheats!");
	 return 1;
}

CMD:aezakmi(playerid, params[])
{
	 if(GetPlayerScore(playerid) > 10000)
	 {
	    if(IsAEZAKMIAllowed[playerid] == 0)
	    {
           GameTextForPlayer(playerid, "~g~Cheat Activated!", 1300, 4);
	       IsAEZAKMIAllowed[playerid] = 1;
	    }
	    else
	    {
           GameTextForPlayer(playerid, "~r~Cheat deactivated!", 1300, 4);
	       IsAEZAKMIAllowed[playerid] = 0;
	    }
	 }
     else return SendClientMessage(playerid, COLOR_RED, "You must have 10,000 score to see SAMP Cheats!");
	 return 1;
}

CMD:fullclip(playerid, params[])
{
     new weapon = GetPlayerWeapon(playerid);
	 if(GetPlayerScore(playerid) > 10000)
	 {
         if(IsPlayerAFK[playerid] == 1) return SendClientMessage(playerid, COLOR_RED, "You cannot use any command while Away from your keyboard!");
	     if(IsFULLCLIPAllowed[playerid] == 0)
         {
		    IsFULLCLIPAllowed[playerid] = 1;
            GivePlayerWeapon(playerid, weapon, 999999999);
            GameTextForPlayer(playerid, "~g~Cheat Activated!", 1300, 4);
         }
         else
         {
		    IsFULLCLIPAllowed[playerid] = 0;
            GivePlayerWeapon(playerid, weapon, 900);
            GameTextForPlayer(playerid, "~r~Cheat deactivated!", 1300, 4);
         }
     }
     else return SendClientMessage(playerid, COLOR_RED, "You must have 10,000 score to see SAMP Cheats!");
     return 1;
}

CMD:changecolor(playerid, params[])
{
	 new mynewcolor = random(9);
	 switch(mynewcolor)
	 {
		  case 0:
		  {
			  SetPlayerColor(playerid, COLOR_WHITE);
			  SendClientMessage(playerid, COLOR_GREEN, "Your color name has been sucessfully changed!");
		  }
		  case 1:
		  {
			  SetPlayerColor(playerid, COLOR_BLUE);
			  SendClientMessage(playerid, COLOR_GREEN, "Your color name has been sucessfully changed!");
		  }
		  case 2:
		  {
			  SetPlayerColor(playerid, COLOR_ORANGE);
			  SendClientMessage(playerid, COLOR_GREEN, "Your color name has been sucessfully changed!");
		  }
		  case 3:
		  {
			  SetPlayerColor(playerid, COLOR_GREEN);
			  SendClientMessage(playerid, COLOR_WHITE, "Your color name has been sucessfully changed!");
		  }
		  case 4:
		  {
			  SetPlayerColor(playerid, COLOR_LIGHTGREEN);
			  SendClientMessage(playerid, COLOR_GREEN, "Your color name has been sucessfully changed!");
		  }
		  case 5:
		  {
			  SetPlayerColor(playerid, COLOR_PINK);
			  SendClientMessage(playerid, COLOR_GREEN, "Your color name has been sucessfully changed!");
		  }
		  case 6:
		  {
			  SetPlayerColor(playerid, COLOR_RED);
			  SendClientMessage(playerid, COLOR_GREEN, "Your color name has been sucessfully changed!");
		  }
		  case 8:
		  {
			  SetPlayerColor(playerid, COLOR_BLACK);
			  SendClientMessage(playerid, COLOR_GREEN, "Your color name has been sucessfully changed!");
		  }
		  case 9:
		  {
			  SetPlayerColor(playerid, COLOR_PINK);
			  SendClientMessage(playerid, COLOR_GREEN, "Your color name has been sucessfully changed!");
		  }
	 }
	 return 1;
}

CMD:lock(playerid, params[])
{
     new vehicleid = GetPlayerVehicleID(playerid);
	 new vid = GetVehicleModel(vehicleid);
	 new string[128],pname[MAX_PLAYER_NAME];
	 GetPlayerName(playerid, pname, sizeof(pname));
	 if(IsPlayerAFK[playerid] == 1) return SendClientMessage(playerid, COLOR_RED, "You cannot use any command while Away from your keyboard!");
	 if(IsPlayerInAnyVehicle(playerid))
	 {
	     if(vid == 448 || vid == 461 || vid == 462 || vid == 463 || vid == 468 || vid == 471 ||
	     vid == 481 || vid == 509 || vid == 510 || vid == 521 || vid == 522 || vid == 523 ||
	     vid == 571 || vid == 581 || vid == 586) return SendClientMessage(playerid, COLOR_RED, "You cannot lock your motor/bike");
	     if(IsPlayerVehicleLocked[playerid] == 0)
	     {
			  format(string, sizeof(string), "%s has locked his vehicle", pname);
			  SendClientMessageToAll(COLOR_RED, string);
			  IsPlayerVehicleLocked[playerid] = 1;
			  SendClientMessage(playerid, COLOR_RED, "Your vehicle door is now locked!");
			  SetVehicleParamsForPlayer(vid, playerid, 0, 1);
	     }
		 else
		 {
			  format(string, sizeof(string), "%s has unlocked his vehicle", pname);
			  SendClientMessageToAll(COLOR_WHITE, string);
			  IsPlayerVehicleLocked[playerid] = 0;
			  SendClientMessage(playerid, COLOR_WHITE, "Your vehicle door is now unlocked!");
			  SetVehicleParamsForPlayer(vid, playerid, 0, 0);
		 }
	 }
	 else return SendClientMessage(playerid, COLOR_RED, "You are not in vehicle!");
	 return 1;
}

CMD:chat(playerid, params[])
{
	 new string[128],pname[MAX_PLAYER_NAME];
	 GetPlayerName(playerid, pname, sizeof(pname));
	 if(isnull(params)) return SendClientMessage(playerid, COLOR_RED, "SYNTAX: /chat <text>");
	 format(string, sizeof(string), "[H & C CHAT] %s(ID:%d)"white": %s", pname, playerid, params);
	 SendClientMessageToAll(COLOR_BLUE, string);
	 printf(string);
	 return 1;
}

CMD:reject(playerid, params[])
{
	new string[128],pname[MAX_PLAYER_NAME];
	GetPlayerName(playerid, pname, sizeof(pname));
	
	if(IsPlayerAFK[playerid] == 1) return SendClientMessage(playerid, COLOR_RED, "You cannot use any command while Away from your keyboard!");
	if(GetPlayerSpecialAction(playerid) == 2)
	{
		if(IsPlayerInJetPack[playerid] == 0) return SendClientMessage(playerid, COLOR_RED, "You must be in vehicle/jetpack to reject!");
		SendClientMessage(playerid, COLOR_RED, "You have been Reject from your JetPack!");
		format(string, sizeof(string), "%s has been reject from his JetPack", pname);
		SendClientMessageToAll(COLOR_RED, string);
		GivePlayerWeapon(playerid, 46, 0);
	    SetPlayerSpecialAction(playerid, 0);
		IsPlayerInJetPack[playerid] = 0;
	}

	if(IsPlayerInAnyVehicle(playerid))
	{
		format(string, sizeof(string), "%s has been reject from his vehicle", pname);
		SendClientMessageToAll(COLOR_RED, string);
		SendClientMessage(playerid, COLOR_RED, "You have been reject from your vehicle!");
		RemovePlayerFromVehicle(playerid);
	}
	else return SendClientMessage(playerid, COLOR_RED, "You must be in vehicle/jetpack to reject!");
	return 1;
}

CMD:help(playerid, params[])
{
	SendClientMessage(playerid, COLOR_YELLOW, "---------- | - Hackers And Cheaters - | ----------");
	SendClientMessage(playerid, COLOR_WHITE, "/register /login /suicide /checkmyid /me /afk /getjetpack /rules");
	SendClientMessage(playerid, COLOR_WHITE, "/teleport /reject /lock /mjshop /help /chat /changecolor /cheats");
	SendClientMessage(playerid, COLOR_YELLOW, "-----------------------------------------------------------");
	return 1;
}

CMD:teleport(playerid, params[])
{
    if(IsPlayerAFK[playerid] == 1) return SendClientMessage(playerid, COLOR_RED, "You cannot use any command while Away from your keyboard!");
	ShowPlayerDialog(playerid, DIALOG_TMENU, DIALOG_STYLE_LIST, "Teleport Menu", "Default Spawnpoint (/Home)", "Choose", "Cancel");
	return 1;
}

CMD:home(playerid, params[])
{
	new string[90],pname[MAX_PLAYER_NAME],Float:x,Float:y,Float:z;
	GetPlayerName(playerid, pname, sizeof(pname));
	GetPlayerPos(playerid, x, y, z);

	if(IsPlayerAFK[playerid] == 1) return SendClientMessage(playerid, COLOR_RED, "You cannot use any command while Away from your keyboard!");

	format(string, sizeof(string), "%s has teleport to Default Spawnpoint (/home)", pname);
	SendClientMessageToAll(COLOR_RED, string);
	GameTextForPlayer(playerid, "~n~~r~Default Spawnpoint", 1300, 4);
    PlayerPlaySound(playerid,1085, x, y, z);
	if(IsPlayerInAnyVehicle(playerid))
	{
		 SetVehiclePos(GetPlayerVehicleID(playerid), -102.0409,-321.9538,1.1265);
		 SetVehicleZAngle(GetPlayerVehicleID(playerid), 133.0508);
	}
	else {
         SetPlayerPos(playerid, -113.0159,-315.0506,2.7646);
         SetPlayerFacingAngle(playerid, 140.9780);
	}
	return 1;
}

CMD:rules(playerid, params[])
{
	new string[700];
	if(IsPlayerReadRules[playerid] == 1) return SendClientMessage(playerid, COLOR_RED, "You have already read the Hackers And Cheaters Rules");
	IsPlayerReadRules[playerid] = 1;
	strcat(string, "1.) Use any kind of hacks But Don't insult\n");
	strcat(string, "2.) No rude/immature/stupid/Spam/Flood behavior in Hackers And Cheaters\n");
	strcat(string, "3.) Only speak english/tagalog. speak other language if its necessary\n");
	strcat(string, "4.) Every hack has its own value . Do not tease other players of their hacks!");
	strcat(string, "5.) Always Carjack in Hackers And Cheaters\n");
	strcat(string, "6.) Cheats/CLEO mods are always allowed in Hackers And Cheaters");
	strcat(string, "7.) No administrator command abusing\n");
	strcat(string, "8.) No spawnkilling near in spawnpoint areas");
	strcat(string, "9.) You can use every kinds of hacks , cleos and cheats and use it on everyone");
	ShowPlayerDialog(playerid, DIALOG_RULES, DIALOG_STYLE_MSGBOX, "Hackers And Cheaters Rules", string, "Agree", "");
	return 1;
}

CMD:checkmyid(playerid, params[])
{
	new string[90];
    if(IsPlayerDead[playerid] == 1) return SendClientMessage(playerid, COLOR_RED, "You are cannot use any commands while your dead!");
	format(string, sizeof(string), "Your current id is %d", playerid);
	SendClientMessage(playerid, COLOR_WHITE, string);
	return 1;
}

CMD:suicide(playerid, params[])
{
    if(IsPlayerDead[playerid] == 1) return SendClientMessage(playerid, COLOR_RED, "You are already dead!");
	if(IsPlayerInJetPack[playerid] == 1) return SendClientMessage(playerid, COLOR_RED, "You cannot killed yourself while in JetPack");
	if(IsPlayerAFK[playerid] == 1) return SendClientMessage(playerid, COLOR_RED, "You cannot kill yourself while Away from your Keyboard");
	SetPlayerHealth(playerid, 0.0);
	IsPlayerDead[playerid] = 1;
	return 1;
}

CMD:me(playerid, params[])
{
	new string[128],pname[MAX_PLAYER_NAME];
	GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
	if(isnull(params)) return SendClientMessage(playerid, COLOR_RED, "SYNTAX: /me <text>");
	format(string, sizeof(string), "* %s %s", pname, params);
	SendClientMessageToAll(COLOR_YELLOW, string);
	return 1;
}

CMD:afk(playerid, params[])
{
	new string[120],Float:x,Float:y,Float:z,pname[MAX_PLAYER_NAME];
	GetPlayerPos(playerid, x, y, z);
	GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
	if(IsPlayerAFK[playerid] == 0)
	{
		TogglePlayerControllable(playerid, 0);
		format(string, sizeof(string), "%s is now Away from his Keyboard", pname);
		SendClientMessageToAll(COLOR_RED, string);
		print(string);
		PlayerPlaySound(playerid,1085, x, y, z);
		SetPlayerArmour(playerid, 99999999.999);
		SetPlayerHealth(playerid, 99999999.999);
		IsPlayerAFK[playerid] = 1;
	}
	else
	{
		TogglePlayerControllable(playerid, 1);
		format(string, sizeof(string), "%s is back from his Keyboard", pname);
		SendClientMessageToAll(COLOR_WHITE, string);
		printf(string);
		SetPlayerArmour(playerid, 100);
		SetPlayerHealth(playerid, 100);
		PlayerPlaySound(playerid,1085, x, y, z);
		IsPlayerAFK[playerid] = 0;
	}
	return 1;
}

CMD:getjetpack(playerid, params[])
{
	new string[90],pname[MAX_PLAYER_NAME];
	GetPlayerName(playerid, pname, sizeof(pname));
	if(IsPlayerAFK[playerid] == 1) return SendClientMessage(playerid, COLOR_RED, "You cannot use jetpack while Away from your Keyboard");
	if(GetPlayerScore(playerid) > 100)
	{
	    if(IsPlayerInJetPack[playerid] == 1) return SendClientMessage(playerid, COLOR_RED, "You already have your JetPack!");
	    format(string, sizeof(string), "%s has spawned a JetPack (/getjetpack)", pname);
	    SendClientMessageToAll(COLOR_RED, string);
	    SendClientMessage(playerid, COLOR_GREEN, "Enjoy with your jetpack!");
	    IsPlayerInJetPack[playerid] = 1;
        SetPlayerSpecialAction(playerid, 2);
	}
	else return SendClientMessage(playerid, COLOR_RED, "You do not have enough score to ride a JetPack!");
	return 1;
}

/* Stocks */

stock IsValidSkin(skinid)
{
    if(skinid < 0 || skinid > 300) return false;
    switch(skinid)
    {
        case 74: return false;
    }
    return true;
}

stock CheckVehicle(vehicleid)
{
    #define MAX_INVALID_NOS_VEHICLES 13

    new InvalidNOSVehicles[MAX_INVALID_NOS_VEHICLES] =
    {
 		522,481,441,468,448,446,513,521,510,430,520,476,463
    };

	for(new i = 0; i < MAX_INVALID_NOS_VEHICLES; i++)
	{
 		if(GetVehicleModel(vehicleid) == InvalidNOSVehicles[i]) return false;
	}
    return true;
}
:P

The error - D:\MJ's GM\pawno\include\streamer.inc(173) : error 017: undefined symbol "OBJECT_MATERIAL_SIZE_256x128"

Configs -
I have - Latest Streamer Plugin And Include .
I have copy pasted the .inc of the latest streamer into - pawno / include .
Yet , this happens .

Please help me ..
Reply
#2

CODE tags please...
Reply
#3

Quote:
Originally Posted by JamesCaptGeneral
Посмотреть сообщение
CODE tags please...
Oh sorry .
Reply
#4

It seems to be a error with the streamer.inc re-download the inc, if that doesn't work ask on the streamer plugin thread.
Reply
#5

Update your streamer.inc
Reply
#6

Quote:
Originally Posted by J4Rr3x
Посмотреть сообщение
Update your streamer.inc
I got the latest Streamer from here - https://github.com/samp-incognito/sa...in-2.7.5.2.zip
Reply
#7

Update the server package as you use a server version of 0.3d or below.

SetObjectMaterialText function was added in 0.3e and so was OBJECT_MATERIAL_SIZE_256x128.
Reply


Forum Jump:


Users browsing this thread: