View Single Post
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 08-28-2013 , 16:46   Re: [Any] Dev Zones (with natives for developers)
Reply With Quote #4

Quote:
Originally Posted by nomy View Post
Does it have teleport ability? So if a player enters a zone, the plugin can teleport to another coord?
You can do it easily using natives of this plugin


For example:

PHP Code:
#pragma semicolon 1
#include <sourcemod>
#include <devzones>

#define sitio6 {-2236.0, -1440.0, -636.4} // soccer coords

public Zone_OnClientEntry(clientString:zone[])
{
    new 
Float:site6[3] = sitio6;
    
TeleportEntity(isite6NULL_VECTORNULL_VECTOR); // teleport to soccer when you join in a zone


Soon I will make a few plugins using this natives
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.


Last edited by Franc1sco; 08-28-2013 at 16:47.
Franc1sco is offline
Send a message via MSN to Franc1sco