17.03.2011, 21:33
pawn Код:
public OnPlayerSpawn(playerid)
{
if(GetPlayerSkin(playerid) == 105)//grove
{
SetPlayerColor(playerid, GROVE);//color
SetPlayerTeam(playerid, 1);// you need team so if someone shoots another person in team, they wont lose health
SendClientMessage(playerid, GROVE, "You have joined team GROVE");
}
if(GetPlayerSkin(playerid) == 106)//grove
{
SetPlayerColor(playerid, GROVE);//color
SetPlayerTeam(playerid, 1);// you need team so if someone shoots another person in team, they wont lose health
SendClientMessage(playerid, GROVE, "You have joined team GROVE");
}
if(GetPlayerSkin(playerid) == 107)//grove
{
SetPlayerColor(playerid, GROVE);//color
SetPlayerTeam(playerid, 1);// you need team so if someone shoots another person in team, they wont lose health
SendClientMessage(playerid, GROVE, "You have joined team GROVE");
}
if(GetPlayerSkin(playerid) == 102)//ballas
{
SetPlayerColor(playerid, BALLAS); // color
SetPlayerTeam(playerid, 2);
SendClientMessage(playerid, BALLAS, "You have joined team BALLAS");
}
if(GetPlayerSkin(playerid) == 103)//ballas
{
SetPlayerColor(playerid, BALLAS); // color
SetPlayerTeam(playerid, 2);
SendClientMessage(playerid, BALLAS, "You have joined team BALLAS");
}
if(GetPlayerSkin(playerid) == 104)//ballas
{
SetPlayerColor(playerid, BALLAS); // color
SetPlayerTeam(playerid, 2);
SendClientMessage(playerid, BALLAS, "You have joined team BALLAS");
}
if(GetPlayerSkin(playerid) == 280)//cop
{
SetPlayerColor(playerid, COPS); //color
SetPlayerTeam(playerid, 3);
SendClientMessage(playerid, COPS, "You have joined team COPS");
}
if(GetPlayerSkin(playerid) == 281)//cop
{
SetPlayerColor(playerid, COPS); //color
SetPlayerTeam(playerid, 3);
SendClientMessage(playerid, COPS, "You have joined team COPS");
}
if(GetPlayerSkin(playerid) == 282)//cop
{
SetPlayerColor(playerid, COPS); //color
SetPlayerTeam(playerid, 3);
SendClientMessage(playerid, COPS, "You have joined team COPS");
}
return 1;
}