08.04.2010, 16:39
Here:
Код:
if(strcmp("/smoke", cmd, true) == 0) { new Playername[MAX_PLAYER_NAME]; GetPlayerName(playerid, Playername, 24); SetPlayerSpecialAction(playerid, SPECIAL_ACTION_SMOKE_CIGGY); GivePlayerMoney(playerid, -2); format(actiontext,MAX_CHATBUBBLE_LENGTH,"*%s takes out a cigarette and lights it*",Playername); SetPlayerChatBubble(playerid,actiontext,ACTION_COLOR,15.0,10000); SendClientMessage(playerid,ACTION_COLOR,actiontext); } return 1;