SA-MP Forums Archive
Text Help - 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)
+--- Thread: Text Help (/showthread.php?tid=360693)



Text Help - Akcent_Voltaj - 18.07.2012

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


Re: Text Help - tyler12 - 18.07.2012

Yes..


Re: Text Help - Tuntun - 18.07.2012

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


Re: Text Help - Dan. - 18.07.2012

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


Re: Text Help - Akcent_Voltaj - 18.07.2012

can someone help me make it?


Re: Text Help - Kirollos - 18.07.2012

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)


Re: Text Help - Tuntun - 18.07.2012

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


Re: Text Help - Dan. - 18.07.2012

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;
}