pick up help!
#1

Hello Samp community..

on the script ive got, we have got 35 pick ups...how do i make it so that wen someone from 'Policeteam[playerid]' picks it up, that team gets 1 point? and same for the 'Vagosteam[playerid]'

at end i want it to be, wich ever team as most pickups out of the 35, wins the game
Reply
#2

pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
  if(pickupid == YourPickup && Vagosteam[playerid] == 1 || pickupid == YourPickup && Policeteam[playerid] == 1)
  {
    new score = GetPlayerScore(playerid);
    SetPlayerScore(playerid, score +1);
    return 1;
  }
  return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)