A small question....
#3

Quote:
Originally Posted by justsomeguy
Посмотреть сообщение
pawn Код:
CMD:BuyBackpack(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 5, -152.7479,-72.4470,1065.8430))
    {
        SetPlayerAttachedObject( playerid, 0, 3026, 1, -0.135905, -0.035217, -0.004736, 0.000000, 0.000000, 0.000000, 0.938511, 1.195391, 1.403976 );
        GetPlayerMoney(25);
        }
    return 1;
}
CMD:BuyBeer(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 5, -166.8134,-72.7598,1065.8430))
    {
        SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER);
        GetPlayerMoney(5);
        }
    return 1;
}
CMD:BuySprunk(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 5, -166.8134,-72.7598,1065.8430))
    {
        SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
        GetPlayerMoney(5);
        }
    return 1;
}
CMD:BuyWhine(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 5, -166.8134,-72.7598,1065.8430))
    {
        SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_WINE);
        GetPlayerMoney(5);
        }
    return 1;
}
What did i do wrong here? Can anyone give me a hand?
PHP код:
CMD:BuyBackpack(playeridparams[])
{
    
#pragma unused params
    
if(IsPlayerInRangeOfPoint(playerid5, -152.7479,-72.4470,1065.8430))
    {
          
SetPlayerAttachedObjectplayerid030261, -0.135905, -0.035217, -0.0047360.0000000.0000000.0000000.9385111.1953911.403976 );
        
GetPlayerMoney(playerid, -25);
    }
    return 
1;
}
CMD:BuyBeer(playeridparams[])
{
    
#pragma unused params
    
if(IsPlayerInRangeOfPoint(playerid5, -166.8134,-72.7598,1065.8430))
    {
        
SetPlayerSpecialAction(playeridSPECIAL_ACTION_DRINK_BEER);
        
GetPlayerMoney(playerid, -5);
    }
    return 
1;
}
CMD:BuySprunk(playeridparams[])
{
    
#pragma unused params
    
if(IsPlayerInRangeOfPoint(playerid5, -166.8134,-72.7598,1065.8430))
    {
        
SetPlayerSpecialAction(playeridSPECIAL_ACTION_DRINK_SPRUNK);
        
GetPlayerMoney(playerid, -5);
    }
    return 
1;
}
CMD:BuyWhine(playeridparams[])
{
    
#pragma unused params
    
if(IsPlayerInRangeOfPoint(playerid5, -166.8134,-72.7598,1065.8430))
    {
        
SetPlayerSpecialAction(playeridSPECIAL_ACTION_DRINK_WINE);
        
GetPlayerMoney(playerid, -5);
    }
    return 
1;

And what the command /enter should do?
Reply


Messages In This Thread
A small question.... - by justsomeguy - 30.06.2011, 14:55
Re: A small question.... - by justsomeguy - 01.07.2011, 22:51
Re: A small question.... - by Shadoww5 - 02.07.2011, 01:35
Re: A small question.... - by justsomeguy - 02.07.2011, 12:02
Re: A small question.... - by Shadoww5 - 02.07.2011, 12:44
Re: A small question.... - by justsomeguy - 02.07.2011, 15:36
Re: A small question.... - by =WoR=Varth - 03.07.2011, 02:49
Re: A small question.... - by Scenario - 03.07.2011, 04:07
Re: A small question.... - by willsuckformoney - 03.07.2011, 05:41
Re: A small question.... - by Mrminecraft202 - 03.07.2011, 06:03

Forum Jump:


Users browsing this thread: 1 Guest(s)