Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: mrockxkingbutt on December 06, 2012, 12:07:48 pm

Title: how to add site cmds and site in gups
Post by: mrockxkingbutt on December 06, 2012, 12:07:48 pm
i wanna add !website cmd in my script
when i type !website nothing happend
please help
Title: Re: how to add site cmds and site in gups
Post by: Fuzzy168 on December 06, 2012, 03:13:36 pm
I don't know you're much more dumb then I thought or if you're just too lazy to get your ass working. A !website command is one of the most easiest to do and if you don't know how, you probably should go read the tutorials or gtfo.

[pawn]
public OnPlayerText( playerid, text[] )
{
   if( strcmp( text, "!website", true ) == 0 ) {
      SendClientMessageToAll( 0xFFFF00, "www.blahblahblah.com"  );
      return 1;
   }
   return 0;
}[/pawn]

I'm not scripting any Pawn server atm so this script is untested.

EDIT: Next time, post this in the correct place.!!!
Title: Re: how to add site cmds and site in gups
Post by: mrockxkingbutt on December 07, 2012, 07:43:46 pm
its not working inn gups :p
Title: Re: how to add site cmds and site in gups
Post by: stormeus on December 09, 2012, 01:33:28 am
its not working inn gups :p

Are you even trying or are you just copy and pasting whatever people give you?
Title: Re: how to add site cmds and site in gups
Post by: aledark24 on December 09, 2012, 07:25:51 am
its not working inn gups :p
lol learn pawn and make you own command
 >:(
Title: Re: how to add site cmds and site in gups
Post by: mrockxkingbutt on December 09, 2012, 12:33:30 pm
i am new at scripting
my skills of scripting is too low
25%
please send me code
of !webiste cmd
Title: Re: how to add site cmds and site in gups
Post by: Fuzzy168 on December 09, 2012, 12:35:27 pm
i am new at scripting
my skills of scripting is too low
25%
please send me code
of !webiste cmd
FFS!! I gave you the fucking code!! Just copy it and paste it to the correct section. Is that tooo hard to understand??
Title: Re: how to add site cmds and site in gups
Post by: mrockxkingbutt on December 09, 2012, 01:00:52 pm
where is the section i need to paste it where
in admin cmd line or player
Title: Re: how to add site cmds and site in gups
Post by: sseebbyy on December 09, 2012, 01:18:00 pm
Press CTRL+F and type there: "OnPlayerText"

You should find it.

Put this part there:

Code: [Select]
if( strcmp( text, "!website", true ) == 0 ) {
SendClientMessageToAll( 0xFFFF00, "www.blahblahblah.com"  );
return 1;
}

Don't forget, you must have just one " if ( ... ( ... ) ... ) { " ,  the rest will be " else if ( ... ( ... ) ... ) { " .


Example:
Code: [Select]
public OnPlayerText(player, text[])
{
            if( ... ( ... ) ... ) {
                //your code
            return 1;
            }
            else if ( ... ( ... ) ... ) {
                 //your code
            return 1;
            }
            else if ( ... ( ... ) ... ) {
                 //your code
            return 1;
            }
    return 1;
}
Title: Re: how to add site cmds and site in gups
Post by: [KB]ViceMania on December 14, 2012, 03:32:12 pm
Why is this command? You better show it without a command every 60 seconds for example.

public AutoSaySite(playerid)
{
SendClientMessageToAll(COLOR_BLUE,"http://www.blablabla.com/");

   return 1;
}

public OnGameModeInit()

   SetTimer("AutoSaySite",60000,1);
Title: Re: how to add site cmds and site in gups
Post by: mrockxkingbutt on December 14, 2012, 04:06:10 pm
thanks
vicemania
and
seeebbyy