21.12.2010, 11:43
Try adding a space:
// edit blackwabe might be right too.. try using the else situation, IDK if it will now work:
remove the message if youd like. IDK if it will work im still a newb.
pawn Код:
if(indm[playerid] == 2 && indm[killerid] == 2)
{
SetPlayerScore(killerid,GetPlayerScore(killerid) - 1);
SendClientMessage(killerid,red,"Dont kill your own men!");
SetPlayerHealth(killerid,0);
}
pawn Код:
if(indm[playerid] == 2 && indm[killerid] == 2)
{
SetPlayerScore(killerid,GetPlayerScore(killerid)-1);
SendClientMessage(killerid,red,"Dont kill your own men!");
SetPlayerHealth(killerid,0);
return 1; //shouldnt it be here?
}
else
{
SendClientMessage(killerid,red,"Dont kill outside a DM!");
return 1;
}