Help spawn - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help spawn (
/showthread.php?tid=73282)
Help spawn -
Typhome - 13.04.2009
I created new gamemode
but i have spawning cords: (it SF)
1958.3783, 1343.1572, 15.3746
and code:
Код:
public OnPlayerRequestSpawn(playerid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}
and he spawn LV-s.
Help ? :/
Re: Help spawn -
Typhome - 13.04.2009
Help! Omfg
Re: Help spawn -
luxeon - 13.04.2009
- wait for 24 hours before double posting, not less than half an hour..
- Why not OnPlayerSpawn() ? Do you understand what you are doing? ..or ?
Luxeon
Re: Help spawn -
Typhome - 13.04.2009
Код:
public OnPlayerSpawn(playerid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
new PlayerName[MAX_PLAYER_NAME],
string[128];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
format(string, sizeof(string), "%s has spawned.", PlayerName);
SendClientMessageToAll(0xFFFFFFFF, string);
return 1;
}
I did, but still spawn same in LV-s
Re: Help spawn -
Mentis - 13.04.2009
You got wrong coordinates. The current coordinates are set to The Strip in LV
Re: Help spawn -
Typhome - 13.04.2009
Thanks,
In the class where can to change skins, but skins doenst show, how do i make to show skin ?
Re: Help spawn -
GanG$Ta - 13.04.2009
You need to edit this part:
Код:
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);
return 1;
}
SetPlayerPos is where the player is setted in the skinselectionmenubackground.
SetPlayerCameraPos is from where the camera "looks" at the skin.
SetPlayerCameraLookAt is hwere the Camera looks, usually the same position where the Player is located.
You can add if you want more stuff like interior or Anim etc.
Re: Help spawn -
Typhome - 13.04.2009
It have. But the skins/classes doenst show.. (invisible)
Re: Help spawn -
GanG$Ta - 13.04.2009
you dont get it what i mean: you need to edit this part else it wont show anything.
Re: Help spawn -
Typhome - 13.04.2009
I dont know how to make skins/classes show..