Detail genauer^^von mir mal xD
Zuerst suchs du in deinen Script:
public SetPlayerSpawn(playerid)
Dort kommen die Spawns der Jeweiligen Fraktionen:
if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)//Police Force spawn LS
{
SetPlayerToTeamColor(playerid);
rand = random(sizeof(gCopPlayerSpawns));
SetPlayerPos(playerid, gCopPlayerSpawns[rand][0], gCopPlayerSpawns[rand][1], gCopPlayerSpawns[rand][2]); // Warp the player
SetPlayerFacingAngle(playerid, 270.0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
unter SetPlayerInterior setzt du die Funktion
GivePlayerWeapon(playerid, 3,1); // Für ein Messer z.B
GivePlayerWeapon(playerid,Waffenid,Ammo);
Wo Sehe ich alle Waffen IDS? hiiiieR
So Sähe es dann aus:
if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)//Police Force spawn LS
{
SetPlayerToTeamColor(playerid);
rand = random(sizeof(gCopPlayerSpawns));
SetPlayerPos(playerid, gCopPlayerSpawns[rand][0], gCopPlayerSpawns[rand][1], gCopPlayerSpawns[rand][2]); // Warp the player
SetPlayerFacingAngle(playerid, 270.0);
SetPlayerInterior(playerid,0);
GivePlayerWeapon(playerid, 3, 1); // Messer
PlayerInfo[playerid][pInt] = 0;
return 1;
}
Viel Spaß beim ausprobiern x)
Sollte Klappen
Mit Freundlichen grüßen
joe