20.12.2010, 18:43
@blackwave: it will return errors due a extra bracket and it will also return SERVER: Unknown Command
@Post author: you need to learn to script
@Post author: you need to learn to script
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/Ikky Wikky Medicine *puke*", cmdtext, true) == 0)
{
if (GetPlayerHealth(playerid) > 94)
{
return SendClientMessage(playerid,0xFF0000,"Lies you has full health already!");
}
else if (GetPlayerHealth(playerid) < 100)
{
SendClientMessage(playerid,0xFF0000,"There ya go nub");
SetPlayerHealth(playerid,100);
GivePlayerMoney(playerid,-1337);
return 1;
}
}
return 0;
}