29.07.2012, 12:33
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:
I have still to add some commands and to add some SPECIAL_ACTIONS.

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;
}

