spawn problem -
PaulDinam - 05.10.2012
I made a tut question and set player camera look at
after he finished the question i put this code and this spawns him but i still stuck on the camera spot.
Код:
ClearChatbox(playerid, 100);
RegistrationQuestion[playerid] = 0;
PlayerInfo[playerid][pTut] = 1;
InTut[playerid] = 0;
GameTextForPlayer(playerid, "~r~Extra RolePlay", 5000, 3);
SendClientMessage(playerid, COLOR_YELLOW2, "Welcome To Los Santos.");
SendClientMessage(playerid, COLOR_NICEBLUE, "You can call TAXI /call 444.");
SendClientMessage(playerid, COLOR_NICEBLUE, "/help for the server commands /report for bugs!");
TutTime[playerid] = 0; PlayerInfo[playerid][pTut] = 1;
gOoc[playerid] = 0; gNews[playerid] = 0; gFam[playerid] = 0; gCFam[playerid] = 0;
TogglePlayerControllable(playerid, 1);
MedicBill[playerid] = 0;
GiveCash(playerid, 5000);
AfterTutorial[playerid] = 1;
SetTimerEx("UnsetAfterTutorial", 2500, false, "i", playerid);
SetTimerEx("UnsetFirstSpawn", 5000, false, "i", playerid);
SetPlayerSpawn(playerid);
Re: spawn problem -
PaulDinam - 05.10.2012
this works
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
Streamer_UpdateEx(playerid,2229.4968,-1722.0701,13.5625);
SetPlayerPos(playerid,2211.1460,-1748.3909,-10.0);
SetPlayerCameraPos(playerid,2211.1460,-1748.3909,29.3744);
SetPlayerCameraLookAt(playerid,2229.4968,-1722.0701,13.5625);
this doesn't works
SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid,1642.1456,-2333.5950,-2.6797);
SetPlayerFacingAngle(playerid, 359.4621);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
Re: spawn problem -
Passout - 05.10.2012
Another "TOP" roleplay script in the making....
This might be what you are looking for
https://sampwiki.blast.hk/wiki/SetCameraBehindPlayer
It just sets the camera back beind the player lol like it says. In other words whenever you set the players camera to look at something you need to set it back.
Re: spawn problem -
PaulDinam - 05.10.2012
dude im using an old script which i've been working on it for 1 year so shut up
Respuesta: spawn problem -
hotspicytaco - 05.10.2012
Are you using TogglePlayerSpectating?
Re: spawn problem -
Passout - 05.10.2012
Quote:
Originally Posted by PaulDinam
dude im using an old script which i've been working on it for 1 year so shut up
|
Lol you got offended for what? All I said was "another 'top' roleplay script in the making"....You must have already knew when you started making your script that you weren't doing anything original.
PS: The Godfather(RP script) came out like 2-3 years ago.
Re: spawn problem -
PaulDinam - 05.10.2012
i removed everything from there and fixed all the bugs newest systems, toys system with saving everything fixed.
i just want to improve it alittle bit and soon im going to release it.
it doesn't even look like GodFather any more
Re: spawn problem -
PaulDinam - 05.10.2012
never mind fixed it, thanks though