Author Topic: Need Drunk Cmd !  (Read 2329 times)

0 Members and 3 Guests are viewing this topic.

NOORAN

  • Guest
Need Drunk Cmd !
« on: January 27, 2012, 09:35:49 pm »
Hey Can Anyone Give me !Drunk and !undrunk cmd I need Plz Give me !

Offline Black Eyed

  • Street Thug
  • *
  • Posts: 9
  • ..::Black_Eyed::..
    • View Profile
Re: Need Drunk Cmd !
« Reply #1 on: January 27, 2012, 11:10:31 pm »
Code: [Select]
     }
       else if ( strcmp( cmd, "!Drunk", true ) == 0 )
    {
       SetPlayerDrunk(playerid,1);
    SendClientMessage(playerid,ORANGE,"Drunked ");
       return 1;



     }
       else if ( strcmp( cmd, "!unDrunk", true ) == 0 )
    {
       SetPlayerDrunk(playerid,0);
    SendClientMessage(playerid,ORANGE,"Undrunked ");
       return 1;




??

NOORAN

  • Guest
Re: Need Drunk Cmd !
« Reply #2 on: January 28, 2012, 08:38:20 am »
Thank You !

Offline jimmy

  • Wiseguy
  • **
  • Posts: 94
    • View Profile
Re: Need Drunk Cmd !
« Reply #3 on: January 29, 2012, 09:45:53 am »
Code: [Select]
i think this cmd is gud

else if ( strcmp( cmd, "!drunk", true ) == 0 )
{
new Float:Drunk;
if ( strcmp( GetPlayerLocation( playerid ), "Bikers-Bar-Downtown-Vice-City-Mainland", true ) == 1 ) SendClientMessage( playerid, COLOR_GREEN, "You have to be at the Biker." );
else
{
SetPlayerDrunk( playerid, 300, 300);
    SendClientMessage( playerid, COLOR_GREEN, "You are now Drunked" );
}
return 1;
}
else if ( strcmp( cmd, "!undrunk", true ) == 0 )
{
new Float:Drunk;
if ( strcmp( GetPlayerLocation( playerid ), "Hospital-Downtown-Vice-City-Mainland", true ) == 1 ) SendClientMessage( playerid, COLOR_GREEN, "You have to be at the Hospital." );
else
{
SetPlayerDrunk( playerid,0);
    SendClientMessage( playerid, COLOR_GREEN, "Dr. says that dont drink again its bad for your health." );
}
return 1;
}


Storm City Owner

Stormcity.smfnew.com

NOORAN

  • Guest
Re: Need Drunk Cmd !
« Reply #4 on: January 29, 2012, 01:13:05 pm »
Thanx Jimmy I added Your Cmd ok Now u  hAPPY !