Raised This Month: $ Target: $400
 0% 

Set_task problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
VEN
Veteran Member
Join Date: Jan 2005
Old 12-11-2005 , 06:33   Re: Set_task problem
Reply With Quote #2

I know here are is a tag mismatch but it would work.
Code:
public cmdSpawn(id) {     new Float:curOrigin[3]     entity_get_vector(id, EV_VEC_origin, curOrigin)         client_print(id, print_chat, "[AMXX] You got 5 seconds to move")     set_task(5.0, "createEnt", 0, curOrigin, 3)         return PLUGIN_HANDLED } public createEnt(Float:origin[3]) {     //some entity creation code, doesnt matter right now     //Just declare the origin to make a good example ^^     entity_set_origin(ent, origin)         //Done :)     return PLUGIN_HANDLED }
VEN is offline
 



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:08.


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