pick up help! - 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: pick up help! (
/showthread.php?tid=87861)
pick up help! -
Mowgli - 22.07.2009
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
Re: pick up help! -
refshal - 22.07.2009
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;
}