SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 22/06/2020, 02:44 PM   #1
AngeloMk
Little Clucker
 
AngeloMk's Avatar
 
Join Date: May 2019
Location: Venezuela
Posts: 30
Reputation: 6
Exclamation Hi, i need help. (OnPlayerRequestClass)

Hi, I need a little help with this. I want that when the user connects he has to choose a character. when I enter the server the character is not seen. you see the sky.
__________________
____________________________________________

💎Servidor Oficial en Español.
____________________________________________
🌐 Website: https://www.drugsliferp.glitch.me/
📢 Discord: https://discord.gg/CQMN6fP
____________________________________________
AngeloMk is offline   Reply With Quote
Old 22/06/2020, 02:52 PM   #2
jasperschellekens
High-roller
 
jasperschellekens's Avatar
 
Join Date: Dec 2016
Location: Holland
Posts: 1,077
Reputation: 126
Default Re: Hi, i need help. (OnPlayerRequestClass)

Set the Spawn info before spawning the player
__________________
If you want to have your own custom script, or even want to have one of our already released scripts, join our SCRIPTING SERVICES DISCORD, or send me a private message!


Undead Wasteland Roleplay - The year is 1996. San Andreas is a wasteland ruled by the undead. the once so glorius landscape of San Andreas, is now a shattered decayed place that is only a vague memory of the world as we used to know it.
Discord - Website
jasperschellekens is offline   Reply With Quote
Old 22/06/2020, 02:53 PM   #3
Hazard
Big Clucker
 
Hazard's Avatar
 
Join Date: May 2020
Location: Brazil
Posts: 114
Reputation: 1
Default Re: Hi, i need help. (OnPlayerRequestClass)

send public on request class
__________________
Hazard is offline   Reply With Quote
Old 22/06/2020, 03:40 PM   #4
AngeloMk
Little Clucker
 
AngeloMk's Avatar
 
Join Date: May 2019
Location: Venezuela
Posts: 30
Reputation: 6
Default Re: Hi, i need help. (OnPlayerRequestClass)

pawn Code:
public OnGameModeInit()
{
AddPlayerClass(292, 1958.33, 1343.12, 15.36, 269.15, -1, -1, -1, -1, -1, -1);
AddPlayerClass(50, 1958.33, 1343.12, 15.36, 269.15, -1, -1, -1, -1, -1, -1);
AddPlayerClass(280, 1958.33, 1343.12, 15.36, 269.15, -1, -1, -1, -1, -1, -1);
return 1;
pawn Code:
public OnPlayerRequestClass(playerid)
{
SetPlayerCameraPos(playerid, 1597.3928, -1699.5081, 55.9331);
SetPlayerCameraLookAt(playerid, 1596.5624, -1700.0829, 55.7230);
SetPlayerPos(playerid, -316.776245, 1053.410400, 15.265959);
return 1;
}
__________________
____________________________________________

💎Servidor Oficial en Español.
____________________________________________
🌐 Website: https://www.drugsliferp.glitch.me/
📢 Discord: https://discord.gg/CQMN6fP
____________________________________________
AngeloMk is offline   Reply With Quote
Old 22/06/2020, 04:21 PM   #5
Hazard
Big Clucker
 
Hazard's Avatar
 
Join Date: May 2020
Location: Brazil
Posts: 114
Reputation: 1
Default Re: Hi, i need help. (OnPlayerRequestClass)

try to put on OnPlayerRequestSpawn
__________________
Hazard is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Ajuda] OnPlayerRequestClass †♥† Português/Portuguese 17 10/10/2013 10:02 PM
[Help] OnPlayerRequestclass [Comrade] Help Archive 2 25/12/2010 09:05 PM
[HELP] With OnPlayerRequestClass <---- [JnA]DukeNukem Help Archive 13 24/12/2010 10:35 PM
OnPlayerRequestClass Infamous Help Archive 3 23/12/2010 07:00 PM
OnPlayerRequestClass jiggy89 Help Archive 2 24/08/2010 12:41 AM


All times are GMT. The time now is 08:59 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.