• 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]
[-] The following 1 user says Thank You to OrangePL for this post:
  • met94
  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 1,618 10-02-2013, 19:26
Last Post: koren30
  Help need help?how to make plugins code hXnarutoXone 12 3,048 09-01-2013, 18:30
Last Post: Bandarigoda123
  Help Need Help with C# code tubwux 2 1,323 08-27-2013, 18:18
Last Post: tubwux
  [Request] Compile this code please dozsa0 4 1,627 08-10-2013, 21:02
Last Post: Nukem
  Compile this code please First_Semyon 12 3,490 08-08-2013, 14:53
Last Post: Bandarigoda123
  Compile please this code First_Semyon 8 2,146 07-28-2013, 01:52
Last Post: First_Semyon
  Code of vector Bloodfocus 1 858 06-23-2013, 11:54
Last Post: Yamato
  problem with gsc code CheGuevara 5 1,686 04-20-2013, 15:06
Last Post: Nekochan
Tongue [Request] read if you have a cs:go code:) rawr-saours 5 1,639 04-05-2013, 18:15
Last Post: SuperNovaAO
Smile Help Help me with a code (who knows) NyZzE 2 954 04-05-2013, 01:47
Last Post: NyZzE

Forum Jump:


Users browsing this thread: 1 Guest(s)