21.10.2009, 19:30
pawn Код:
//OnPlayerCommandText
if(!strcmp(cmdtext[1],"drink",true))
{
SetPlayerSpecialAction(playerid,ID);
format(string,sizeof string,"You have applyed Special Action ID %d.",GetPlayerSpecialAction(playerid));
SendClientMessage(playerid,0xAABBCCDD,string);
}
/*
======== Avaible ID's ========
20 - SPECIAL_ACTION_DRINK_BEER
21 - SPECIAL_ACTION_SMOKE_CIGGY
22 - SPECIAL_ACTION_DRINK_WINE
23 - SPECIAL_ACTION_DRINK_SPRUNK
*/