Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: NOORAN on January 27, 2012, 09:35:49 pm

Title: Need Drunk Cmd !
Post by: NOORAN on January 27, 2012, 09:35:49 pm
Hey Can Anyone Give me !Drunk and !undrunk cmd I need Plz Give me !
Title: Re: Need Drunk Cmd !
Post by: Black Eyed 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;




??
Title: Re: Need Drunk Cmd !
Post by: NOORAN on January 28, 2012, 08:38:20 am
Thank You !
Title: Re: Need Drunk Cmd !
Post by: jimmy 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;
}


Title: Re: Need Drunk Cmd !
Post by: NOORAN on January 29, 2012, 01:13:05 pm
Thanx Jimmy I added Your Cmd ok Now u  hAPPY !