21.02.2010, 13:56
if(strcmp("/drunk", cmdtext, true, 9) == 0)
{
SetPlayerDrunkLevel(playerid, GetPlayerDrunkLevel(playerid) + 2000);
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRI NK_BEER);
ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,1,1 ,1,1,1);
GameTextForPlayer(playerid,"~W~Drunk Mode Is ~g~On!",3000,5);
SendClientMessage(playerid, 0xFF641AFF, "SERVER: Type /drunk off to Stop being Drunk.");
SetPlayerHealth(playerid, GetPlayerHealth(playerid) + 20);
return 1;
}
can someone fix it for me ?
edit : the error showed when i added setplayerhealth; whats wrong with it ?
{
SetPlayerDrunkLevel(playerid, GetPlayerDrunkLevel(playerid) + 2000);
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRI NK_BEER);
ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,1,1 ,1,1,1);
GameTextForPlayer(playerid,"~W~Drunk Mode Is ~g~On!",3000,5);
SendClientMessage(playerid, 0xFF641AFF, "SERVER: Type /drunk off to Stop being Drunk.");
SetPlayerHealth(playerid, GetPlayerHealth(playerid) + 20);
return 1;
}
can someone fix it for me ?
edit : the error showed when i added setplayerhealth; whats wrong with it ?