Skin reset
#1

Hey im trying to make a /work command. So i have make the /work command, when i type it my the is changing. I have still have to make some commands but i have a problem. I want to make it when i type /work again to return the players skin and to go off duty.

Here what i have done for now:
Код:
new work;

public OnGameModeInit()
{
        work = CreatePickup(1239, 23, 317.130615, 692.398498, 11.460937);
	return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
	if(pickupid == work)
	{
	    SendClientMessage(playerid, COLOR_YELLOW, "Type /work to start working!");
	}
	return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
	if(!strcmp("/work",cmdtext))
	{
		GetPlayerSkin(playerid);
	    IsPlayerInRangeOfPoint(playerid, 7.0, 317.130615, 692.398498, 11.460937);
	    SetPlayerSkin(playerid, 277);
		return 1;
	}
	return 0;
}
I have still to add some commands and to add some SPECIAL_ACTIONS.
Reply


Messages In This Thread
Skin reset - by Stm - 29.07.2012, 12:33
Re: Skin reset - by Littlehelper - 29.07.2012, 12:39
Re: Skin reset - by KingyKings - 29.07.2012, 12:39
Re: Skin reset - by Devilxz97 - 29.07.2012, 12:39
Re: Skin reset - by Stm - 29.07.2012, 12:58
Re: Skin reset - by Devilxz97 - 29.07.2012, 13:10
Re: Skin reset - by Stm - 29.07.2012, 13:15
Re: Skin reset - by Littlehelper - 29.07.2012, 13:16
Re: Skin reset - by Devilxz97 - 29.07.2012, 13:55

Forum Jump:


Users browsing this thread: 3 Guest(s)