SA-MP Forums Archive
Little help need - 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)
+--- Thread: Little help need (/showthread.php?tid=373151)



Little help need - GTAprogamer111 - 29.08.2012

Hello. Now my question is that, how to do like that if Terrorist team wins (One of them got to checkpoint) and all gets killed, then how to add $10000 to all Terrorist team (to all guys (Who are in Terrorist team)) and for losing team loses $5000. And of course, like that if terrorist team is death (all players from terrorist team) then come's: GameTextForAll("Cops win", 1500,3);
Heres a code:
pawn Код:
if (GetPlayerSkin(playerid) == 29)
    {
        SetPlayerColor(playerid, COLOR_RED);
        #define TerroristCP 2216.9297,-1147.5685,1025.7969
        SetPlayerCheckpoint(playerid, TerroristCP, 3.0);
    }
    if (GetPlayerSkin(playerid) == 299)
    {
        SetPlayerColor(playerid, COLOR_RED);
        #define TerroristCP 2216.9297,-1147.5685,1025.7969
        SetPlayerCheckpoint(playerid, TerroristCP, 3.0);
    }
    if (GetPlayerSkin(playerid) == 254)
    {
        SetPlayerColor(playerid, COLOR_RED);
        #define TerroristCP 2216.9297,-1147.5685,1025.7969
        SetPlayerCheckpoint(playerid, TerroristCP, 3.0);
    }
    if (GetPlayerSkin(playerid) == 250)
    {
        SetPlayerColor(playerid, COLOR_RED);
        #define TerroristCP 2216.9297,-1147.5685,1025.7969
        SetPlayerCheckpoint(playerid, TerroristCP, 3.0);
    }
    if (GetPlayerSkin(playerid) == 188)
    {
        SetPlayerColor(playerid, COLOR_RED);
        #define TerroristCP 2216.9297,-1147.5685,1025.7969
        SetPlayerCheckpoint(playerid, TerroristCP, 3.0);
    }
    if (GetPlayerSkin(playerid) == 121)
    {
        SetPlayerColor(playerid, COLOR_RED);
        #define TerroristCP 2216.9297,-1147.5685,1025.7969
        SetPlayerCheckpoint(playerid, TerroristCP, 3.0);
    }
    if (GetPlayerSkin(playerid) == 113)
    {
        SetPlayerColor(playerid, COLOR_RED);
        #define TerroristCP 2216.9297,-1147.5685,1025.7969
        SetPlayerCheckpoint(playerid, TerroristCP, 3.0);
    }
    if (GetPlayerSkin(playerid) == 112)
    {
        SetPlayerColor(playerid, COLOR_RED);
        #define TerroristCP 2216.9297,-1147.5685,1025.7969
        SetPlayerCheckpoint(playerid, TerroristCP, 3.0);
    }
    if (GetPlayerSkin(playerid) == 280)
    {
        SetPlayerColor(playerid, COLOR_BLUE);
    }
    if (GetPlayerSkin(playerid) == 281)
    {
        SetPlayerColor(playerid, COLOR_BLUE);
    }
    if (GetPlayerSkin(playerid) == 282)
    {
        SetPlayerColor(playerid, COLOR_BLUE);
    }
    if (GetPlayerSkin(playerid) == 283)
    {
        SetPlayerColor(playerid, COLOR_BLUE);
    }
    if (GetPlayerSkin(playerid) == 284)
    {
        SetPlayerColor(playerid, COLOR_BLUE);
    }
    if (GetPlayerSkin(playerid) == 285)
    {
        SetPlayerColor(playerid, COLOR_BLUE);
    }
    if (GetPlayerSkin(playerid) == 286)
    {
        SetPlayerColor(playerid, COLOR_BLUE);
    }
    if (GetPlayerSkin(playerid) == 288)
    {
        SetPlayerColor(playerid, COLOR_BLUE);
    }



Re: Little help need - [HK]Ryder[AN] - 29.08.2012

1.Why don't u define TerroristCP on top of all these..You wouldnt have to define them again and again
2.Use teams..theres a tutorial on SA:MP wiki about it...it will be easier..you just ogtta do
pawn Код:
if(GetPlayerTeam(playerid) == 1) GivePlayerMoney(playerid, 10000);
much easier.


Re: Little help need - GTAprogamer111 - 29.08.2012

1. I get errors then.
2. Link to there?


Re: Little help need - [HK]Ryder[AN] - 29.08.2012

1.Okay....
2.https://sampforum.blast.hk/showthread.php?tid=282178