/website
#1

Im looking for the code for /website (website here) command. I have no idea even if i had the code where to put it. Any help
Reply
#2

Quote:
Originally Posted by TheEpicBraxton
Посмотреть сообщение
I have no idea even if i had the code where to put it.
You want a command, but you don't know how to make it and not even where to put it? I suggest reading some documentation and tutorials before even daring to post here.

https://sampforum.blast.hk/showthread.php?tid=92
Reply
#3

I can script. I just never scripted Commands before
Reply
#4

i recommend you to use zcmd rather than strcmp.
Read some tutorials..
Reply
#5

For starters: https://sampwiki.blast.hk/wiki/OnPlayerCommandText

However I'd rather want you to check out zcmd
Reply
#6

Cmon, really you've scripted before. But haven't scripted commands? wtf.

You couldn't have scripted a lot then as scripting usually includes making commands.

But yeah you should follow Larzi Advice and check out the wiki.
Reply
#7

What is this /website command supposed to do?

show the player the website of your server?
Reply
#8

In your gamemode under OnPlayerCommandText put this:

pawn Код:
if(!strcmp(cmdtext, "/website", true))
{
    SendClientMessage(playerid, -1, "Our website is PUT WEBSITE URL HERE");
    return 1;
}
It should look something like this:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/website", true))
    {
        SendClientMessage(playerid, -1, "Our website is PUT WEBSITE URL HERE");
        return 1;
    }

return 1;
}
Obviously all your other commands would be there and not just this one.
Reply
#9

Quote:
Originally Posted by Chenko
Посмотреть сообщение
In your gamemode under OnPlayerCommandText put this:

pawn Код:
if(!strcmp(cmdtext, "/website", true))
{
    SendClientMessage(playerid, -1, "Our website is PUT WEBSITE URL HERE");
    return 1;
}
It should look something like this:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/website", true))
    {
        SendClientMessage(playerid, -1, "Our website is PUT WEBSITE URL HERE");
        return 1;
    }

return 1;
}
Obviously all your other commands would be there and not just this one.
Thank you
Reply
#10

Quote:
Originally Posted by Chenko
Посмотреть сообщение
In your gamemode under OnPlayerCommandText put this:

pawn Код:
if(!strcmp(cmdtext, "/website", true))
{
    SendClientMessage(playerid, -1, "Our website is PUT WEBSITE URL HERE");
    return 1;
}
It should look something like this:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/website", true))
    {
        SendClientMessage(playerid, -1, "Our website is PUT WEBSITE URL HERE");
        return 1;
    }

return 1;
}
Obviously all your other commands would be there and not just this one.
*sigh*
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)