On PlayerSpawn sieht so aus
public OnPlayerSpawn(playerid)
{
M_OnPlayerSpawn(playerid);
TextDrawShowForPlayer(playerid,Copyright);
TextDrawShowForPlayer(playerid,ModeName);
SetPlayerToTeamColor(playerid);
TextDrawShowForPlayer(playerid, Time), TextDrawShowForPlayer(playerid, Date);
//InitLockDoors(playerid);
STDPlayer[playerid] = 0;
OnDuty[playerid] = 0;
GivePlayerWeapons(playerid);
SetPlayerArmour(playerid,0);
gTeam[playerid] = PlayerInfo[playerid][pTeam]; //Set the Team
if (gTeam[playerid] == 4) //medic / criminal reset team
{
gTeam[playerid] = 3;
}
und das andere so
stock GivePlayerWeapons(playerid)
{
if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
if (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
if (PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)
if (PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
if (PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
if (PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)
if (PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
if (PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pLeader] == 17)
if (PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == 18)
if (PlayerInfo[playerid][pMember] == 19 || PlayerInfo[playerid][pLeader] == 19)
if (PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20)
{
GivePlayerWeapon(playerid,3,1);
GivePlayerWeapon(playerid,29,900);
GivePlayerWeapon(playerid,31,900);
GivePlayerWeapon(playerid,41,900);
GivePlayerWeapon(playerid,22,900);
SetPlayerArmour(playerid,100.0);
}
return 1;
}
ist das richtig?