How do i set the interior for a class spawn?
#5

PHP код:
new const Float:g_SpawnGroves[][4] = {
    {
2495.9788,-1709.5435,1014.7422,359.6140interiorid},
    {
2495.9788,-1709.5435,1014.7422,359.6140interiorid},
    {
2495.9788,-1709.5435,1014.7422,359.6140interiorid}
}; 
its ezy make it like this
PHP код:
 new rpos random(sizeof(g_SpawnGroves));
       
SetPlayerPos(playeridg_SpawnGroves[rpos][0], g_SpawnGroves[rpos][1], g_SpawnGroves[rpos][2]);
    
SetPlayerInterior(playeridg_SpawnGroves[rpos][3]); 
Try it will work as u want
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)