Can you help me
#1

Hi,

Sorry for the kinda sad subject but i need help.

I am busy with setting up an server plus gamemode and i am almost done but i have one tiny issue and i just cant fix it when you join the game you just fall trough the ground in blueberry, when you die you fall trough the ground in blueberry, i just dont know what the problem is then my friend had an solution he said make an teleport there so when you fall in there you will get teleported. I thought hmm good idea so i started untill an point. wich is this point "how do you make an teleport" Well i know how to make an teleport with commands but i want an teleport, that when he walks in to an I icon he gets teleported i already have the teleport coordinates but how do you make that actual teleport its probaly very simple but if you know it it would be very apreciated to tell it

Huge thanks and greets,

Jeroen
aka
Playbox12
Reply
#2

Quote:
Originally Posted by playbox12
Hi,

Sorry for the kinda sad subject but i need help.

I am busy with setting up an server plus gamemode and i am almost done but i have one tiny issue and i just cant fix it when you join the game you just fall trough the ground in blueberry, when you die you fall trough the ground in blueberry, i just dont know what the problem is then my friend had an solution he said make an teleport there so when you fall in there you will get teleported. I thought hmm good idea so i started untill an point. wich is this point "how do you make an teleport" Well i know how to make an teleport with commands but i want an teleport, that when he walks in to an I icon he gets teleported i already have the teleport coordinates but how do you make that actual teleport its probaly very simple but if you know it it would be very apreciated to tell it

Huge thanks and greets,

Jeroen
aka
Playbox12
Maybe we can fix our spawn code.
Show Spawn Code Please
Reply
#3

How you mean with the spawn code
Reply
#4

Search your script for AddPlayerClass and show us it
Reply
#5

OnPlayerSpawn(){

THIS BIT

}
Reply
#6

Quote:
Originally Posted by adsy
OnPlayerSpawn(){

THIS BIT

}
He might have NO AddPlayerClass..
Reply
#7

Quote:
Originally Posted by Torran
Quote:
Originally Posted by adsy
OnPlayerSpawn(){

THIS BIT

}
He might have NO AddPlayerClass..
does it really allow you to spawn if no class is created?

if this is the bit thats missing then it gets placed under

OnGameModeInit(){
AddPlayerClass()
}
Reply
#8

Yes and it spawns you at coordinates 0.0, 0.0, 0.0, Also known as, Below the ground at blueberry!
Reply
#9

im still learning, i tend to already have my co-ords so dont see these problems
Reply
#10

Torran was right i dont have AddPlayerClass but i did find OnPlayerSpawn so i will paste it here

public OnPlayerSpawn(playerid)
{
if(PlayerInfo[playerid][pTut] == 0)
{
SetPlayerCameraPos(playerid, 1481.5609, -1735.0886, 13.382;
SetPlayerCameraLookAt(playerid, 1481.5609, -1735.0886, 13.382;
TogglePlayerControllable(playerid, 0);
GameTextForPlayer(playerid, "~g~The ~w~God~r~father~n~~w~Tutorial", 10000, 3);
SendClientMessage(playerid, COLOR_YELLOW, "To avoid admin intervention during your gameplay, please pay attention.");
TutTimer = SetTimerEx("ShowTut", 20000, true, "i", playerid);
TutorialStage[playerid] = 1;
}
if(gPlayerLogged[playerid])
{
PlayerInfo[playerid][pSpawnPoint] = 1;
new house = PlayerInfo[playerid][pHouseKey];
if(house != 255)
{
if(PlayerInfo[playerid][pSpawnPoint])
{
SetPlayerInterior(playerid,Houses[house][ExitInterior]);
SetPlayerPos(playerid, Houses[house][ExitX], Houses[house][ExitY],Houses[house][ExitZ]);
SetPlayerVirtualWorld(playerid,house);
return 1;
}
}
else if (PlayerInfo[playerid][pFaction] != 255)
{
if(PlayerInfo[playerid][pSpawnPoint] == 0)
{
SetPlayerPos(playerid,DynamicFactions[PlayerInfo[playerid][pFaction]][fX],DynamicFactions[PlayerInfo[playerid][pFaction]][fY],DynamicFactions[PlayerInfo[playerid][pFaction]][fZ]);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
return 1;
}
}
else
{
SetPlayerPos(playerid,CivilianSpawn[X],CivilianSpawn[Y],CivilianSpawn[Z]);
SetPlayerVirtualWorld(playerid, CivilianSpawn[World]);
SetPlayerInterior(playerid, CivilianSpawn[Interior]);
SetPlayerFacingAngle(playerid,CivilianSpawn[Angle]);
return 1;
}
SetPlayerWeapons(playerid);
SetPlayerMapIcon(playerid, 0, 1310.1991,-1366.7968,13.5065, 55, COLOR_YELLOW); // DMV
SetPlayerMapIcon(playerid, 4, 1544.4790,-1673.6595,13.5585, 30, COLOR_YELLOW); // LSPD
SetPlayerMapIcon(playerid, 5, 1571.1887,-1336.7534,16.4844, 52, COLOR_YELLOW); // Bank
SetPlayerMapIcon(playerid, 6, 1480.9323,-1767.7324,18.7958, 56, COLOR_YELLOW); // City Hall
}
return 1;
}


Under it there was SetPlayerSpawn so to be sure i will paste it here too

public SetPlayerSpawn(playerid)
{
if(IsPlayerConnected(playerid))
{
SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);

if(PlayerInfo[playerid][pLoadPos])
{
SetPlayerPos(playerid,PlayerInfo[playerid][pLoadPosX],PlayerInfo[playerid][pLoadPosY],PlayerInfo[playerid][pLoadPosZ]);
SetPlayerInterior(playerid,PlayerInfo[playerid][pLoadPosInt]);
SetPlayerVirtualWorld(playerid,PlayerInfo[playerid][pLoadPosW]);
PlayerInfo[playerid][pLoadPos] = 0;
return 1;
}
if(PlayerInfo[playerid][pRegistered] == 0)
{
TogglePlayerControllable(playerid, 0);
}
if(PlayerCuffed[playerid] == 1)
{
PlayerInfo[playerid][pJailed] = 1;
PlayerInfo[playerid][pJailTime] = 15;
}
if(PlayerInfo[playerid][pHospital] > 0)
{
DoHospital(playerid);
return 1;
}
if(AdminDuty[playerid])
{
SetPlayerColor(playerid,COLOR_ADMINDUTY);
SetPlayerHealth(playerid,999);
SetPlayerArmour(playerid,999);
}
if(PlayerInfo[playerid][pFaction] != 255)
{
SetPlayerToFactionColor(playerid);
SetPlayerToFactionSkin(playerid);
}
if(PlayerInfo[playerid][pJailed] > 0)
{
if(PlayerInfo[playerid][pJailed] == 1)
{
SetPlayerVirtualWorld(playerid,2);
SetPlayerInterior(playerid,6);
SetPlayerPos(playerid,264.5743,77.5118,1001.0391);
SendClientMessage(playerid, COLOR_WHITE, "(INFO) You have not finished your jail time");
return 1;
}
else if(PlayerInfo[playerid][pJailed] == 2)
{
SetPlayerVirtualWorld(playerid,0);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,3312.4163,-1935.4459,10.9682);
SendClientMessage(playerid, COLOR_WHITE, "(INFO) You have not finished your jail time");
return 1;
}
}
new house = PlayerInfo[playerid][pHouseKey];
if(house != 255)
{
if(PlayerInfo[playerid][pSpawnPoint])
{
SetPlayerInterior(playerid,Houses[house][ExitInterior]);
SetPlayerPos(playerid, Houses[house][ExitX], Houses[house][ExitY],Houses[house][ExitZ]);
SetPlayerVirtualWorld(playerid,house);
return 1;
}
}
if(PlayerInfo[playerid][pFaction] != 255)
{
if(PlayerInfo[playerid][pSpawnPoint] == 0)
{
SetPlayerPos(playerid,DynamicFactions[PlayerInfo[playerid][pFaction]][fX],DynamicFactions[PlayerInfo[playerid][pFaction]][fY],DynamicFactions[PlayerInfo[playerid][pFaction]][fZ]);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
return 1;
}
}
else
{
SetPlayerPos(playerid,CivilianSpawn[X],CivilianSpawn[Y],CivilianSpawn[Z]);
SetPlayerVirtualWorld(playerid, CivilianSpawn[World]);
SetPlayerInterior(playerid, CivilianSpawn[Interior]);
SetPlayerFacingAngle(playerid,CivilianSpawn[Angle]);
return 1;
}
}
return 1;
}


I hope you guys can do anything with it and.. I also was wondering about class systems I cant change skin only with an FS /setskin ID SkinID and when you die or relog most of the times it wont save || So i was wondering if any of you guys have ideas for that i just want an simple class system selection when they join they have to pick an skin when they die, they spawn with the skin they choosed when they join (hope you can still follow) system so Civilian can choose Civilian Skins Cops Cop skins etc

I am using an GodFather edit New York Roleplay is the name i hope you guys have all the info if you dont i can give the PWN file ??





Thanks again for the time and help,

Greets,

Jeroen
aka
Playbox12
Reply
#11

[BUMP]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)