SA-MP Forums Archive
Help Me !!!1 - 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)
+--- Thread: Help Me !!!1 (/showthread.php?tid=623384)



Help Me !!!1 - TYDS - 01.12.2016

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;
}



Re: Help Me !!!1 - aymane123 - 01.12.2016

You made a personal video how can i see it


Re: Help Me !!!1 - TYDS - 01.12.2016

i have update the link of videos any one


Re: Help Me !!!1 - Alvitr - 01.12.2016

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


Re: Help Me !!!1 - TYDS - 01.12.2016

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


Re: Help Me !!!1 - Alvitr - 01.12.2016

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


Re: Help Me !!!1 - TYDS - 01.12.2016

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 ??


Re: Help Me !!!1 - Alvitr - 01.12.2016

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;




Re: Help Me !!!1 - TYDS - 01.12.2016

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);


Re: Help Me !!!1 - Alvitr - 01.12.2016

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