13.07.2010, 21:48
For the TeamChangeFor
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.
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;
}