SA-MP Forums Archive
[Help] TEAM KILL playerskin - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Help] TEAM KILL playerskin (/showthread.php?tid=92069)



[Help] TEAM KILL playerskin - RedFaction444 - 18.08.2009

Help me please

How to make team kill for PlayerSkin(105,106,107) and (102,103,104)

public OnPlayerSpawn(playerid)
if(gTeam[playerid] == TEAM_GROVE) {

SetPlayerSkin(playerid,105);
SetPlayerColor(playerid,COLOR_GREEN); // Green

}
else if(gTeam[playerid] == TEAM_GROVE1) {

SetPlayerSkin(playerid,106);
SetPlayerColor(playerid,COLOR_GREEN); // Green

}
else if(gTeam[playerid] == TEAM_GROVE2) {

SetPlayerSkin(playerid,107);
SetPlayerColor(playerid,COLOR_GREEN); // Green

}
else if(gTeam[playerid] == TEAM_BALLA) {

SetPlayerSkin(playerid,102);
SetPlayerColor(playerid,COLOR_BLUE); // Blue

}
else if(gTeam[playerid] == TEAM_BALLA1) {

SetPlayerSkin(playerid,103);
SetPlayerColor(playerid,COLOR_BLUE); // Blue

}
else if(gTeam[playerid] == TEAM_BALLA2) {

SetPlayerSkin(playerid,104);
SetPlayerColor(playerid,COLOR_BLUE); // Blue

}



return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{

if(killerid == INVALID_PLAYER_ID)

{

SendDeathMessage(INVALID_PLAYER_ID,playerid,reason );



}



else {

if(gTeam[killerid] != gTeam[playerid]) {

// Valid kill

SendDeathMessage(killerid,playerid,reason);
UAS_GivePlayerMoney(killerid,1000);




}

else {

//Team Killer!

SendClientMessage(killerid, COLOR_YELLOW, "Не стреляй в своих!");
SendDeathMessage(killerid,playerid,reason);
SetPlayerHealth(killerid,0.0);
UAS_GivePlayerMoney(killerid,-2000);

}

}

return 1;

}


Re: {Help} Kill Team - RedFaction444 - 18.08.2009




Re: {Help} Kill Team - RedFaction444 - 18.08.2009

Quote:
Originally Posted by RedFaction444



Re: {Help} Kill Team - _Vortex - 18.08.2009

Do NOT triple post.

Ffs, SA:MP is beginning to fill up with spammers quickly.

Explain your problem BETTER, and DO NOT TRIPLE POST! THERE'S AN EDIT BUTTON!