31.07.2012, 19:42
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/vbite", cmdtext, true, 10) == 0)
{
new Float:x, Float:y, Float:z;
new targetid;
if(IsPlayerInRangeOfPoint(targetid,2.0,x,y,z))return SendClientMessage(playerid,0xE00404,"You are not near the player");
{
SetPlayerHealth(targetid,10);
SendClientMessage(targetid,0xE00404,"You have been bitten by a vampire");
SetPlayerDrunkLevel(playerid,3000);
ApplyAnimation(playerid,"KISSING","Grlfrd_Kiss_01",4.1,0,0,0,0,1,1);
}
return 1;
}
return 0;
}
Please fix it for me.