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);
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);
}
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
1. I get errors then.
2. Link to there?
1.Okay....
2.