05.11.2014, 05:41 
	
	
	
		Guys , i wondering why this is not works , when i go to the coords it didn't work
heres the code
	
	
	
	
heres the code
Код:
COMMAND:buyclothes(playerid, params[])
{
    new skinnumber, skinid, string[128];
    if(sscanf(params, "d", skinid)) SendClientMessage(playerid, -1,"USAGE:/buyclothes [skinid]");
    else if(skinid < 0 || skinid > 299) SendClientMessage(playerid, 0xFF000000, "{ff0000}ERROR: {ffffff}Choose a skin between 0 to 299!");
    else
    {
        if(!IsPlayerInRangeOfPoint(playerid,10,-1883.0410,865.6260,35.1728))
		#pragma unused params
		SetPlayerSkin(playerid, skinid);
        skinnumber = GetPlayerSkin(playerid);
        format(string, sizeof(string), "You buy skin %d for 50$", skinnumber);
        SendClientMessage(playerid, -1, string);
        GivePlayerMoney(playerid, -50);
        return 1;
	}
}






 )
)

