08.10.2009, 21:21
Hey SA:MP, I was just wondering how i could do this. I tried several ways but still couldnt get it right, thought it maybe time to ask for help.
I just want it so if your TEAM_COP, and killerid is TEAM_PRIS, then it gives them police keys, but it doesnt seem to work for me, Maybe you can help?
Thanks.
-Mike.
Код:
public OnPlayerDeath(playerid, killerid, reason) { if(TEAM_COP[playerid] == 1) { if(TEAM_PRIS[killerid] == 1) { SendClientMessage(playerid, COLOR_YELLOW, " You have now got Police Keys, You can open all doors"); CopKeys(playerid); GameTextForPlayer(playerid, "~p~Police Keys: ~g~GAINED", 2000, 1); } return 1; }
Thanks.
-Mike.