SA-MP Forums Archive
[HELP] /Welcome command - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] /Welcome command (/showthread.php?tid=191369)



[HELP] /Welcome command - Larsey123IsMe - 18.11.2010

ok ok, I know this is a noob question ^^

pawn Код:
#include <a_samp>

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/welcome", cmdtext, true, 10) == 0)
    {
    if(IsPlayerAdmin(playerid))
    {
        GameTextForPlayer(playerid, "~r~Welcome~n~~g~To~n~~b~Larsey123's Server!", 2500, 5); //When i type /Welcome then should the text show up like evryone can see it
        return 1;
        }
    }
    return 0;
}



Re: [HELP] /Welcome command - [L3th4l] - 18.11.2010

Please dude, the wiki was made for a reason:

https://sampwiki.blast.hk/wiki/GameTextForAll
--------
If you actually searched, you could of find your problem ^.^


Re: [HELP] /Welcome command - Basicz - 18.11.2010

pawn Код:
#include <a_samp>

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/welcome", cmdtext, true, 10) == 0)
    {
    if(IsPlayerAdmin(playerid))
    {
        GameTextForAll("~r~Welcome~n~~g~To~n~~b~Larsey123's Server!", 2500, 5); //When i type /Welcome then should the text show up like evryone can see it
        return 1;
        }
    }
    return 0;
}



Re: [HELP] /Welcome command - Larsey123IsMe - 18.11.2010

Quote:
Originally Posted by Basicz
Посмотреть сообщение
pawn Код:
#include <a_samp>

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/welcome", cmdtext, true, 10) == 0)
    {
    if(IsPlayerAdmin(playerid))
    {
        GameTextForAll("~r~Welcome~n~~g~To~n~~b~Larsey123's Server!", 2500, 5); //When i type /Welcome then should the text show up like evryone can see it
        return 1;
        }
    }
    return 0;
}
Thank You!


Re: [HELP] /Welcome command - Steven82 - 18.11.2010

Dear jesus, fuck man just look at the thing "GameTextForPlayer" bolded player so you can see the hint i gave you for future reference.