AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   if Specific Weapon used (https://forums.alliedmods.net/showthread.php?t=50660)

Blue One 01-31-2007 11:37

if Specific Weapon used
 
hi guys how i can get works that if i use the MP40 i got an message MP40 Rulez or else and if i use Enfield message U owned him with ya BIIIG Enfield ??

maybe with

Code:

new name_of_weapon 30
get_user_weapon(id,name_of_weapon,29)
if(name_of_weapon == MP40)
{
      client_print(id,print_center,"WOW !!!! MP40 RULEZ")
}


[ --<-@ ] Black Rose 01-31-2007 11:44

Re: if Specific Weapon used
 
Code:
new temp1, temp2, weapon = get_user_weapon(id, temp1, temp2) if ( weapon == DODW_MP40 )        client_print(id,print_center,"WOW !!!! MP40 RULEZ")

Blue One 01-31-2007 12:10

Re: if Specific Weapon used
 
Quote:

Originally Posted by [ --<-@ ] Black Rose (Post 433859)
Code:
new temp1, temp2, weapon = get_user_weapon(id, temp1, temp2) if ( weapon == DODW_MP40 )        client_print(id,print_center,"WOW !!!! MP40 RULEZ")

Thanks for your Very fast and Right answer , my script and me thank you


All times are GMT -4. The time now is 00:35.

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