Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help code why want thiswork
#1
#include common_scripts\utility;
#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;


int()
level. thread dopickup()


pickup()
{
self endon("death");
for(;Wink
{
while(self fragbuttonpressed())
{
trace = bullettrace(self gettagorgin("j_head"),self gettagorgin("j_head")+anglestoforward(self getplayerangels())*1000000,true,self);
trace["entity"] setorgin(self gettagorgin("j_head")+anglestoforward(self getplayerangels())*200);
trace["entity"].orgin = self gettagorgin("j_head")+anglestoforward(self getplayerangles())*200;
wait 0.05;
}
}
Reply

#2
Because you're calling that function on the level (the server basically). You want to call the pickup() function on a player. Ie.

COD Code
  1. init()
  2. level thread onPlayerConnected();
  3.  
  4. onPlayerConnected()
  5. while(1)
  6. {
  7. level waittill("connected", player);
  8. player thread onplayerspawned();
  9. }
  10.  
  11. onPlayerSpawned()
  12. self waittill("spawned_player");
  13. self thread pickup();


not to mention other simple errors such as missing out ; and calling the function dopickup(); when only the function pickup() exists
Reply

#3
My team of scientists now has even more work.
[Image: lQDUjba.jpg]
Reply

#4
jeez, at least use code tags and post in the right section..happens all the time
moved
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help Code color crosshairs koren30 3 3,662 10-02-2013, 19:26
Last Post: koren30
  Help need help?how to make plugins code hXnarutoXone 12 7,819 09-01-2013, 18:30
Last Post: Bandarigoda123
  Help Need Help with C# code tubwux 2 3,118 08-27-2013, 18:18
Last Post: tubwux
  [Request] Compile this code please dozsa0 4 3,821 08-10-2013, 21:02
Last Post: Nukem
  Compile this code please First_Semyon 12 8,910 08-08-2013, 14:53
Last Post: Bandarigoda123
  Compile please this code First_Semyon 8 5,194 07-28-2013, 01:52
Last Post: First_Semyon
  Code of vector Bloodfocus 1 2,214 06-23-2013, 11:54
Last Post: Yamato
  problem with gsc code CheGuevara 5 5,106 04-20-2013, 15:06
Last Post: Nekochan
Tongue [Request] read if you have a cs:go code:) rawr-saours 5 3,799 04-05-2013, 18:15
Last Post: SuperNovaAO
Smile Help Help me with a code (who knows) NyZzE 2 2,370 04-05-2013, 01:47
Last Post: NyZzE

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.