Raised This Month: $ Target: $400
 0% 

MULTI set_user_origin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 07-06-2010 , 11:43   Re: MULTI set_user_origin
Reply With Quote #5

Should something like this:

Code:
new const Float:TerroristOrigins[5][3] = {     {-240, -150, -91},     {-240, -230, -91},     {-240, -330, -91},     {-240, -430, -91},     {-240, -530, -91} } new const Float:CounterOrigins[5][3] = {     {350, -150, -91},     {350, -230, -91},     {350, -330, -91},     {350, -430, -91},     {350, -530, -91} } public KnifeDuel() {     new players[32], num, tt, ct, id;         get_players(players, num);         for(new i = 0; i < num; i++)     {         id = players[i];                 if(cs_get_user_team(id) == CS_TEAM_T)         {             if(tt > 5) return;                         set_pev(id, pev_origin, TerroristOrigins[tt]);             cs_reset_user_model(id);             strip_user_weapons(id);             give_item(id, "weapon_knife");                         tt++;         }                 else if(cs_get_user_team(id) == CS_TEAM_CT)         {             if(ct > 5) return;                         set_pev(id, pev_origin, CounterOrigins[ct]);             cs_reset_user_model(id);             strip_user_weapons(id);             give_item(id, "weapon_knife");                         ct++;         }     } }

But for some reasons that i don't know i get tag mismatch :/
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...

Last edited by Alucard^; 07-06-2010 at 11:46.
Alucard^ is offline
Send a message via Skype™ to Alucard^
 



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 07:09.


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