Raised This Month: $ Target: $400
 0% 

Weapons Spawn


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Jeyden
Member
Join Date: Feb 2011
Old 05-15-2013 , 15:10   Re: Weapons Spawn
Reply With Quote #1

Quote:
Originally Posted by grs4 View Post
Origin have 3 arrays size. X Y Z
Code:
   {
        id = players[i]
        pev(id,pev_origin,Origin)
        
        for(new j ; j <= 3;j++)
            Origin[j] = random_float(-500.0,500.0)
        
        new ran = random(sizeof WeaponsList - 1)    

        new Ent = create_entity(WeaponsList[ran])
   
        engfunc(EngFunc_SetOrigin,Ent,Origin)    
        engfunc(EngFunc_DropToFloor, Ent)
You can
Code:
new ran = random(sizeof WeaponsList - 1) // Must be - 1    

Doesn't work
Jeyden is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:23.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode