how i do this simple thing?
#1

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.


Reply
#2

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

I think you can find it there.
Reply
#3

naw it's not there.
Reply
#4

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

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

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;
}
Reply
#7

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

XD i figured out a way, thanks guys!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)