16.11.2011, 22:04
Hi, im trying to make a script that when you are drunk you talk like: Hi, I'm *Derp* Daniel, How *Hurr* Are You? *Herp.*
Input: I'm Daniel, How Are You?
Output: Hi, I'm *Derp* Daniel, How *Hurr* Are You? *Herp.*
it would be something like:
public OnPlayerText(playerid, text[])
{
if(GetPlayerDrunkLevel(playerid) > 1999)
{
//Split, Format, etc, etc...
}
}
but i have no idea how to do it correctly.
any help will be appreciated.
Input: I'm Daniel, How Are You?
Output: Hi, I'm *Derp* Daniel, How *Hurr* Are You? *Herp.*
it would be something like:
public OnPlayerText(playerid, text[])
{
if(GetPlayerDrunkLevel(playerid) > 1999)
{
//Split, Format, etc, etc...
}
}
but i have no idea how to do it correctly.
any help will be appreciated.