14.03.2018, 18:04
You're not even clearly and you wait for us to solve your problem, you just repeat 'spawn in las venturas' in all your posts. Having a problem with 'OnPlayerSpawn' ? It always makes you at Las Venturas ?
Try to explain us what's your issue with this one code ?
Also, we need some informations about that, is theses float loaded from Mysql ?
Try to explain us what's your issue with this one code ?
PHP код:
if(fracspawn >0) //If player is a leader, so he must spawn in Las Venturas ?
{
setpos(playerid,fl[fracspawn][fSpawnx],fl[fracspawn][fSpawny],fl[fracspawn][fSpawnz]);
setint(playerid,fl[fracspawn][fInt]);
setworld(playerid,fl[fracspawn][fWorld]);
GivePlayerWeapon(playerid,fl[fracspawn][fGun1],fl[fracspawn][fAmmo1]);
}
else
{
setint(playerid,4);
setworld(playerid,0);
setpos(playerid,-1435.75, -652.664, 1054.94);
return 1;
}
Код:
fl[fracspawn][fSpawnx],fl[fracspawn][fSpawny],fl[fracspawn][fSpawnz]