Help Me !!!1
#1

https://*********/ibxM-ZTq0gQ
my code :
Код:
public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid, 258.713409, -40.220973, 1002.023437);
    SetPlayerFacingAngle(playerid, 130.733856);
    SetPlayerCameraLookAt(playerid, 258.713409, -40.220973, 1002.023437);
    SetPlayerCameraPos(playerid, 258.713409 + (5 * floatsin(-130.733856, degrees)), -40.220973 + (5 * floatcos(-130.733856, degrees)), 1002.023437);
	SetPlayerInterior(playerid, 14);
	return 1;
}
Reply
#2

You made a personal video how can i see it
Reply
#3

i have update the link of videos any one
Reply
#4

have you using this?
https://sampwiki.blast.hk/wiki/AddPlayerClass
Reply
#5

Quote:
Originally Posted by Alvitr
Посмотреть сообщение
so i trust delete that line
Reply
#6

use AddPlayerClass to add that what skin you want to let palyer select.

PHP код:
public OnGameModeInit()
{
    
// Players can spawn with either the CJ skin (0) or The Truth skin (1).
    
AddPlayerClass(01958.331343.1215.36269.1526362815000); // CJ
    
AddPlayerClass(11958.331343.1215.36269.1526362815000); // The Truth
    
return 1;

and there are position you can set
Reply
#7

Quote:
Originally Posted by Alvitr
Посмотреть сообщение
use AddPlayerClass to add that what skin you want to let palyer select.

PHP код:
public OnGameModeInit()
{
    
// Players can spawn with either the CJ skin (0) or The Truth skin (1).
    
AddPlayerClass(01958.331343.1215.36269.1526362815000); // CJ
    
AddPlayerClass(11958.331343.1215.36269.1526362815000); // The Truth
    
return 1;

oh oke thank you but about interior ??
Reply
#8

PHP код:
public OnPlayerRequestClass(playeridclassid)
{
    
//or here to do something every for all class show
    
switch(classid)
    {
        case 
0://class id 0
        
{
            
//do some thing with when class id 0 show
        
}
        case 
1://class id 1
        
{
            
//do some thing with when class id 1 show
        
}
    }
    return 
1;

Reply
#9

oh and a question
AddPlayerClass so i have to add 311 skin
AddPlayerClass(0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0); // CJ
AddPlayerClass(1, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0); // The Truth
.............. AddPlayerClass(311, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150,0,0);
Reply
#10

umm, if you want add all skins,
why dont you using loop?

https://sampwiki.blast.hk/wiki/Loops

https://sampwiki.blast.hk/wiki/Control_Structures#Loops
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)