SA-MP Forums Archive
how i do this simple thing? - 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: how i do this simple thing? (/showthread.php?tid=70568)



how i do this simple thing? - Drift_04 - 25.03.2009

i know most of the advanced things in pawno scriptung but idk this, but firts of all i have gteam balla and gteam grove how do i make it so when the teams kill the other team their score goes up 1 and if they teamkill the score stays the same? to determin which gang won.





Re: how i do this simple thing? - Klutty - 25.03.2009

https://sampwiki.blast.hk/wiki/PAWN_tuto...eam_deathmatch

I think you can find it there.


Re: how i do this simple thing? - Drift_04 - 26.03.2009

naw it's not there.


Re: how i do this simple thing? - tom_jonez - 26.03.2009

pawn Код:
OnPlayerDeath(playerid,killerid,reason)
{
if(gTeam[playerid] == TEAM_BALLER)
{
   grovepoint ++;
}
if(gTeam[playerid] == TEAM_GROVE)
{
   ballerpoint ++;
}
return 1;
}



Re: how i do this simple thing? - Drift_04 - 26.03.2009

yo tom, for that alone word point it makes no sense how do i use point?


Re: how i do this simple thing? - Finn - 26.03.2009

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(gTeam[playerid] != gTeam[killerid]) SetPlayerScore(killerid, GetPlayerScore(killerid)+1);
    //else SetPlayerScore(killerid, GetPlayerScore(killerid)-1); // <----------- You can add this if you want to give one minus point for each team kill.
    return 1;
}



Re: how i do this simple thing? - tom_jonez - 26.03.2009

add new ballerpoint,grovepoint; at the top of ur script.


Re: how i do this simple thing? - Drift_04 - 26.03.2009

XD i figured out a way, thanks guys!