#1

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/enter", cmdtext, true, 6) == 0)
	{
			if(IsPlayerInRangeOfPoint(playerid,  3.0, 2309.8423, -1644.9840, 14.8270))
			{
            SetPlayerInterior(playerid, 11);
		    SetPlayerPos(playerid, 501.8214, -69.0665, 998.7578);
            SetPlayerShopName(playerid,"FDBAR");
            SendClientMessage(playerid, 0xAFAFAFAA, "Ти влезе в бара");
            }
            return 1;
    }
    if (strcmp("/exit", cmdtext, true, 5) == 0)
	{
            if(IsPlayerInRangeOfPoint(playerid, 3.0, 501.8214, -69.0665, 998.7578))
            {
            SetPlayerInterior(playerid, 0);
		    SetPlayerPos(playerid, 2309.8423, -1644.9840, 14.8270);
            SendClientMessage(playerid, 0xAFAFAFAA, "Ти излезе от бара");
            }
		  return 1;
    }
    if(strcmp(cmdtext, "/drinks", true, 7) == 0) 
    {
            if(IsPlayerInRangeOfPoint(playerid, 3.0, 497.1258, -75.9710, 998.7578))
            {
            ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Какво желаеш?", "Спрайт ($10)\nБира ($20)\nВино ($30)", "Купи", "Излез");
            }
        return 1;
    }
    return 0;
}
D:\igri\GTA San Andreas\filterscripts\xc.pwn(105) : warning 217: loose indentation
D:\igri\GTA San Andreas\filterscripts\xc.pwn(113) : warning 217: loose indentation
Reply
#2

i olso want to tell me how to make the commands used near the position because i use it every where
Reply
#3

and how to make multiplie enter positions ?
Reply
#4

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/enter", cmdtext, true, 6) == 0)
	{
			if(IsPlayerInRangeOfPoint(playerid,  3.0, 2309.8423, -1644.9840, 14.8270))
			{
            SetPlayerInterior(playerid, 11);
		    SetPlayerPos(playerid, 501.8214, -69.0665, 998.7578);
            SetPlayerShopName(playerid,"FDBAR");
            SendClientMessage(playerid, 0xAFAFAFAA, "Ти влезе в бара");
            }
            return 1;
    }
    if (strcmp("/exit", cmdtext, true, 5) == 0)
	{
            if(IsPlayerInRangeOfPoint(playerid, 3.0, 501.8214, -69.0665, 998.7578))
            {
            SetPlayerInterior(playerid, 0);
		    SetPlayerPos(playerid, 2309.8423, -1644.9840, 14.8270);
            SendClientMessage(playerid, 0xAFAFAFAA, "Ти излезе от бара");
            }
		  	return 1;
    }
    if(strcmp(cmdtext, "/drinks", true, 7) == 0)
    {
            if(IsPlayerInRangeOfPoint(playerid, 3.0, 497.1258, -75.9710, 998.7578))
            {
            ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Какво желаеш?", "Спрайт ($10)\nБира ($20)\nВино ($30)", "Купи", "Излез");
            }
        	return 1;
    }
    return 0;
}
Reply
#5

Sorry for double posting.
Reply
#6

thx man i have to arrange my codes
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)