public OnPlayerConnect(playerid)
{
/* NPC/BOT ABFRAGE
if(IsPlayerNPC(playerid))
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, "[BOT]mantelman_intro", true))
{
SetPlayerSkin(playerid, 33); // <- The Skin here!
printf("%s wurde skin id 33 gesetzt!", npcname);
}
if(!strcmp(npcname, "[BOT]intro_catalina_new", true))
{
SetPlayerSkin(playerid, 192); // <- The Skin here!
printf("%s wurde skin id 192 gesetzt!", npcname);
}
if(!strcmp(npcname, "[BOT]bank_banshee", true))
{
SetPlayerSkin(playerid, 299); // <- The Skin here!
printf("%s wurde skin id 299 gesetzt!", npcname);
PutPlayerInVehicle(playerid, botcar_intro_banshee0, 0);
printf("%s wurde in das Fahrzeug gesetzt!", npcname);
}
return 1;
}*/
if(IsPlayerNPC(playerid)) return 1;
// MAP
RemoveBuildingForPlayer(playerid, 10821, -1505.2578, 715.2422, 64.0391, 0.25);
RemoveBuildingForPlayer(playerid, 10822, -1336.8125, 892.7578, 57.9141, 0.25);
RemoveBuildingForPlayer(playerid, 11250, -1505.2578, 715.2422, 64.0391, 0.25);
RemoveBuildingForPlayer(playerid, 11251, -1336.8125, 892.7578, 57.9141, 0.25);
RemoveBuildingForPlayer(playerid, 11380, -1499.9609, 720.6875, 42.0547, 0.25);
RemoveBuildingForPlayer(playerid, 11381, -1349.3281, 879.4219, 43.0313, 0.25);
RemoveBuildingForPlayer(playerid, 1290, -1529.3438, 689.2422, 50.1484, 0.25);
RemoveBuildingForPlayer(playerid, 1290, -1463.7031, 758.2344, 51.7969, 0.25);
RemoveBuildingForPlayer(playerid, 1290, -1397.7344, 827.5391, 52.7891, 0.25);
RemoveBuildingForPlayer(playerid, 1290, -1331.1328, 897.4063, 51.8125, 0.25);
RemoveBuildingForPlayer(playerid, 1290, -1264.5703, 967.3438, 50.1875, 0.25);
return 1;
}
Alles anzeigen
public OnPlayerRequestClass(playerid, classid)
{
/*SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);*/
if(IsPlayerNPC(playerid)) //auch ganz nach oben
{
SetSpawnInfo(playerid,0,299,0,0,3,0,0,0,0,0,0,0);
SpawnPlayer(playerid);
return 1;
}
intro(playerid);
return 1;
}
Alles anzeigen
public OnPlayerRequestSpawn(playerid)
{
return 1;
}