spawn, beginner
How can I make it work?
I am a beginner, so don't judge me please... and help me... I need like... If a person types "/spawn" in the chat he/she can spawn, but only 2 time per round, and I have no idea how to make it... and look at my bad, really bad scripting: (:D) PHP Code:
PHP Code:
|
Re: spawn, beginner
First, use Ham Sandwich spawn function. It better then using the fun function
(Note: Fakemeta dll-spawn is for entity, not for players - I checked at my server and it doesn't spawn me, but it show that i'm alive and no one can kill me). You need to create a global variable that his size is 33 (32 cells, from 0 to 32) And then read this: https://forums.alliedmods.net/showthread.php?t=42159 Use the round start event There, use get_players (or just looping with get_maxplayers) and for every player reset the variable cell like that: PHP Code:
|
Re: spawn, beginner
Quote:
Thank you! I'll try to make something then post it here and yo tell me ether it works or not, ok? :) |
Re: spawn, beginner
Quote:
PHP Code:
|
Re: spawn, beginner
Quote:
PHP Code:
PHP Code:
and what does that mean? PHP Code:
PHP Code:
|
Re: spawn, beginner
Quote:
About the second: "a" is flag that says to amxx that it's a global event. "1=0" means that the first param must be 0. "2=0" means that the second param must be 0. From amxmodx.inc: PHP Code:
|
| All times are GMT -4. The time now is 20:37. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.