public OnPlayerSpawn(playerid)
//das eine
{
StopAudioStreamForPlayer(playerid);
new Random = random(sizeof(RandomSpawns));
SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);
return 1;
}
//das andere
{
if(IsPlayerNPC(playerid))
{
new npcname[64];
GetPlayerName(playerid,npcname,64);
if(!strcmp(npcname,"[Bot]Name",true))
{
//SetSpawnInfo(playerid, team, skin, Float:x, Float:y, Float:z, Float:rotation, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);
SetSpawnInfo(playerid, 0, 107, 2492.5146, -1703.2296, 1015.5703, 328.5485, 0, 0, 0, 0, 0, 0);
new Text3D:NameEintragen = Create3DTextLabel("Dieb",0xFFFFFFAA,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(NameEintragen, playerid, 0.0, 0.0, 0.5);
SetPlayerColor(playerid,0x00FF00AA);
return 1;
}
}
return 0;
}
Ich habe zwei Sachen die ich unter OnPlayerSpawn unterbringen möchte, bekomme es aber nicht hin. Was muss ich beachten, was mache ich falsch? Lol