AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   i need help with this.. :( (https://forums.alliedmods.net/showthread.php?t=29961)

k007 06-19-2006 15:09

i need help with this.. :(
 
hi,
could some one tell me wuts wrong with this?
it doesn't work
Code:
public FireInTheHole(id){     if(hastrail[id] == true)                return PLUGIN_CONTINUE     new id = read_data(1)     set_task(0.1, "grenid", id)     return PLUGIN_HANDLED } public grenid(id){     new string[32], hegrenid = 0, smokeid = 0, flashid = 0     do{         hegrenid = get_grenade_id(id, string, 31, hegrenid)     }     while (hegrenid && hasHENADE[id] == true)             if (hegrenid && hasHENADE[id] == true){         message_begin( MSG_BROADCAST, SVC_TEMPENTITY )         write_byte( TE_BEAMFOLLOW )         write_short(hegrenid)    // entity         write_short(sprite)    // model         write_byte( 10 ) // life         write_byte( 5 )  // width         write_byte( 255 )    // r, g, b         write_byte( 0 )    // r, g, b         write_byte( 0 )    // r, g, b         switch (random_num(0,2)){             case 0:             write_byte( 64 )    // brightness             case 1:             write_byte( 128 )    // brightness             case 2:             write_byte( 192 )    // brightness         }         message_end()  // move PHS/PVS data sending into here (SEND_ALL, SEND_PVS, SEND_PHS)     }         do{         smokeid = get_grenade_id(id, string, 31, smokeid)     }     while (smokeid && hasSMOKENADE[id] == true)             if (smokeid && hasSMOKENADE[id] == true){         message_begin( MSG_BROADCAST, SVC_TEMPENTITY )         write_byte( TE_BEAMFOLLOW )         write_short(smokeid)    // entity         write_short(sprite)    // model         write_byte( 10 ) // life         write_byte( 5 )  // width         write_byte( 0 )    // r, g, b         write_byte( 255 )    // r, g, b         write_byte( 0 )    // r, g, b         switch (random_num(0,2)){             case 0:             write_byte( 64 )    // brightness             case 1:             write_byte( 128 )    // brightness             case 2:             write_byte( 192 )    // brightness         }         message_end()  // move PHS/PVS data sending into here (SEND_ALL, SEND_PVS, SEND_PHS)     }         do{         flashid = get_grenade_id(id, string, 31, flashid)     }     while (flashid && hasFLASHNADE[id] == true)             if (flashid && hasFLASHNADE[id] == true){         message_begin( MSG_BROADCAST, SVC_TEMPENTITY )         write_byte( TE_BEAMFOLLOW )         write_short(flashid)    // entity         write_short(sprite)    // model         write_byte( 10 ) // life         write_byte( 5 )  // width         write_byte( 255 )    // r, g, b         write_byte( 255 )    // r, g, b         write_byte( 255 )    // r, g, b         switch (random_num(0,2)){             case 0:             write_byte( 64 )    // brightness             case 1:             write_byte( 128 )    // brightness             case 2:             write_byte( 192 )    // brightness         }         message_end()  // move PHS/PVS data sending into here (SEND_ALL, SEND_PVS, SEND_PHS)     } }
i have another fireinthehall but it's diffrent, it might be cuz of it i dunno
Code:
public fire_in_the_hole(param[])

k007

Z@C 06-19-2006 15:18

can you take me all plugin. i can't found it :roll:

k007 06-19-2006 15:19

you want me to post the hole plugin?

Z@C 06-19-2006 15:26

write link to *.sma file for me for download
ps: mb i can help you

k007 06-19-2006 15:28

no.
it's realy simple can't you understand it?

Z@C 06-19-2006 15:40

i can't make this plugin. get me it

k007 06-19-2006 15:45

this plugin was already made i'm just addin to to my plugin do understand now, didn't i say wut do i want? i said when i add if(hasHENADE[id]) or the ids i have there they don't work that all wut i need

Z@C 06-19-2006 16:09

%^&%$&^#
i ask you get me this plugin, i haven't it. you understand?

SweatyBanana 06-19-2006 17:04

Sorry for his english.

He wants the whole plugin...


including the plugin_init part and everything else..


If you would just post it up he might help you.

k007 06-19-2006 17:07

i can't sorry lol i just want to know if there is away i could make this event when a person throw_grenade blah blah blah if(hasname[id])
do you get what i mean sweaty?


All times are GMT -4. The time now is 07:58.

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