01.06.2011, 01:48
hello
This is a really nice script! But i have some questions
To add vehicles for, we say group 3, do i do like this?
And how do i put players in groups?
if OnPlayerSpawn, what do i need to put in here to make members and leader of team 3 be on group 3?
This is a really nice script! But i have some questions
To add vehicles for, we say group 3, do i do like this?
pawn Код:
AddGroupedVehicle(476,3,-1511.3623,-164.6398,14.8441,11.8009,6,6,true);
if OnPlayerSpawn, what do i need to put in here to make members and leader of team 3 be on group 3?
pawn Код:
public OnPlayerSpawn(playerid)
{
if(Member[playerid] == 3)
{
SetPlayerColor(playerid,COLOR_YELLOW);
SetPlayerTeam(playerid, 3);
SetPlayerSkin(playerid, 255);
SetPlayerPos(playerid, -1468.5074,-206.8094,14.1484);
GivePlayerWeapon(playerid,36,60); //HS Rocket Launcher **
GivePlayerWeapon(playerid,27,100); //Combat Shotgun
GivePlayerWeapon(playerid,30,200); //AK-47
SendClientMessage(playerid,COLOR_YELLOW,"Combat Team: Thunderbirds.");
}
if(Leader[playerid] == 3)
{
SetPlayerColor(playerid,COLOR_YELLOW);
SetPlayerTeam(playerid, 3);
SetPlayerSkin(playerid, 61);
SetPlayerPos(playerid, -1468.5074,-206.8094,14.1484);
GivePlayerWeapon(playerid,36, 75); //HS Rocket Launcher **
GivePlayerWeapon(playerid,27, 100); //Combat Shotgun
GivePlayerWeapon(playerid, 38, 100); //Minigun
GivePlayerWeapon(playerid, 30, 350); //AK-47
/*SendClientMessage(playerid,COLOR_YELLOW,"Combat Team: Thunderbirds.");*/
}
return 1;
}