Teams - 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: Teams (
/showthread.php?tid=92883)
Teams -
dafel2 - 22.08.2009
Код:
new artilerytime[MAX_PLAYERS];
Код:
if(strcmp(cmd, "/fire", true) == 0)
{
new tmp[32] = "0";
while(strlen(tmp))
{
tmp = strtok(cmdtext, idx);
if(strlen(tmp) > 0)
{
if(artilerytime[playerid] == 1)
{
artilerytime[playerid] = 1;
FireStationaryArtillery(strval(tmp));
SetTimer("artilerytime2", 60000, 1);
}
SendClientMessage(playerid, COLOR_BLUE,"You already shot artilery wait untill it reloads ");
return 1;
}
}
return 1;
}
I want to this sets to
Код:
artilerytime[playerid] = 1;
to its team where the players is when the players uses /fire.
How can i do that?
Код:
SendClientMessage(playerid, COLOR_BLUE,"Your team already shot artilery wait untill it reloads ");
Something like that
Re: Teams -
dafel2 - 23.08.2009
BUMP
Re: Teams -
ronyx69 - 23.08.2009
something like:
Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(YourTeamVariable[playerid]=firstteam)
{
if(YourTeamVariable[i]=firstteam)
{
artilerytime[i]=1;
}
}
else if(YourTeamVariable[playerid]=anotherteam)
{
if(YourTeamVariable[i]=anotherteam)
{
artilerytime[i]=1;
}
}
}
Re: Teams -
Waqqa - 23.08.2009
Kill the Double Poster !