Looking for "Team Change" script
#6

For the TeamChangeFor

pawn Код:
dcmd_teamchangefor(playerid, params[])
{
if(PlayerInfo[playerid][Admin] >= 1)
{
new id;
    for(new i=0; i<MAX_PLAYERS; i++)
    {
     if(sscanf(params,"i",id)) SendClientMessage(playerid,COLOR_YELLOW,"Usage: /teamchangefor [1-3]");
else
{
 if(id == 1)
{
 // Here you should check who are on team 1 (Whatever you want Team 1 to be, and then set their health to 0)
}
 if(id == 2)
{
 // Here you should check who are on team 2 (Whatever you want Team 2 to be, and then set their health to 0)
}
 if(id == 3)
{
 // Here you should check who are on team 3 (Whatever you want Team 3 to be, and then set their health to 0)
}
}
    }
}
else
{
 SendClientMessage(playerid,COLOR_YELLOW,"You are not a admin");
}
return 1;
}
Not sure if this would work just made it in the quick reply box, I doubt it, If you have any problems tell me, Anyways sorry that I didn't make a text one instead of [1-3] but just too bored to do that.
Reply


Messages In This Thread
Looking for "Team Change" script - by Rolyy - 13.07.2010, 19:31
Re: Looking for "Team Change" script - by oliverrud - 13.07.2010, 19:50
Re: Looking for "Team Change" script - by Rolyy - 13.07.2010, 19:59
Re: Looking for "Team Change" script - by oliverrud - 13.07.2010, 20:38
Re: Looking for "Team Change" script - by Rolyy - 13.07.2010, 20:59
Re: Looking for "Team Change" script - by oliverrud - 13.07.2010, 21:48

Forum Jump:


Users browsing this thread: 3 Guest(s)