Can you help me
#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


Messages In This Thread
Can you help me - by playbox12 - 22.02.2010, 16:23
Re: Can you help me - by dclaw - 22.02.2010, 16:24
Re: Can you help me - by playbox12 - 22.02.2010, 19:52
Re: Can you help me - by Torran - 22.02.2010, 19:55
Re: Can you help me - by adsy - 22.02.2010, 19:55
Re: Can you help me - by Torran - 22.02.2010, 19:56
Re: Can you help me - by adsy - 22.02.2010, 20:02
Re: Can you help me - by Torran - 22.02.2010, 20:03
Re: Can you help me - by adsy - 22.02.2010, 20:04
Re: Can you help me - by playbox12 - 22.02.2010, 21:00
Re: Can you help me - by playbox12 - 26.02.2010, 15:12

Forum Jump:


Users browsing this thread: 2 Guest(s)