Text Help
#1

is it possible so if i type in chat "im stuck" i get automaticly unfrozen??
Reply
#2

Yes..
Reply
#3

Quote:
Originally Posted by tyler12
Посмотреть сообщение
Yes..
You Mean with cmd's?
Reply
#4

Quote:
Originally Posted by Tuntun
Посмотреть сообщение
You Mean with cmd's?
No..
Reply
#5

can someone help me make it?
Reply
#6

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(strfind(text, "Stuck") != -1)
    {
        TogglePlayerControllable(playerid, true);
        ClearAnimations(playerid);
        SendClientMessage(playerid, -1, "Now you can walk?");
        return 0;
    }
}
Maybe That? (the code is untested)
Reply
#7

Quote:
Originally Posted by Dan.
Посмотреть сообщение
No..
How Than??
Reply
#8

Quote:
Originally Posted by Tuntun
Посмотреть сообщение
How Than??
Like this:

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(strcmp("I'm stuck", text) == 0)
    {
        TogglePlayerControllable(playerid, 1);
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)