SA-MP Forums Archive
Attached Object - 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: Attached Object (/showthread.php?tid=665048)



Attached Object - Mohaowmad - 20.03.2019

Hello
these are codes and when i spawn the attached object doesen't show up

codes:
PHP код:
public OnPlayerSpawn(playerid)
{
    if(
gPlayerClass[playerid] == CLASS_SOLDIER)//This is for the First soldier class.
    
{
        
TogglePlayerControllable(playerid1);
        
ResetPlayerWeapons(playerid);
        
GivePlayerWeapon(playerid31200);//m4
        
GivePlayerWeapon(playerid25100);//mp5
        
GivePlayerWeapon(playerid2470);//deagle
        
SetPlayerAttachedObject(playerid01910220.1539990.0110000.000000);
    }
    return 
1;

anyone could help ?


Re: Attached Object - justinnater - 21.03.2019

Are you getting the weapons though? (m4,mp5,deagle)