[HELP] /Welcome command
#1

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;
}
Reply
#2

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 ^.^
Reply
#3

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;
}
Reply
#4

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!
Reply
#5

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


Forum Jump:


Users browsing this thread: 1 Guest(s)