Whats wrong with this? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Whats wrong with this? (
/showthread.php?tid=392807)
Whats wrong with this? -
[CG]Milito - 15.11.2012
Код:
if(gTeam[killerid] == TEAM_TBM && gTeam[playerid] != TEAM_TBM)
{
if(GetPlayerWantedLevel(playerid) < 0)
{
SendClientMessage(killerid,COLOR_RED,"[[_Friendly Fire_]] Do not kill your gang mates!");
SendClientMessage(killerid,COLOR_RED,"Your score has been decreased 2 points, don't do it again.");
DecreasePlayerScore(playerid,2);
SetPlayerWantedLevel(playerid,0);
SendDeathMessage(killerid,playerid,reason);
return 1;
}
}
:P It doesn't work.
Re: Whats wrong with this? -
Tomejus - 15.11.2012
Try:
Код:
if(GetPlayerWantedLevel(playerid) <= 0)
I doubt, that player will have a minus wanted level.
Respuesta: Whats wrong with this? -
[CG]Milito - 15.11.2012
Ohh! Dude, thats true xD
Topic Solved