17.05.2012, 07:42
OK
I do system ..
If player call you , you do /answer id
and open you new chat
write on the chat but this send the message for you and for the player ..
Im try this :
(But have bags ...)
OnPlayerText:
PHP Code:
And if player answer to player:
If you dont understand :
Let's make it clear:
A player needs help with buying a car, so that player uses: /help I don't know where to buy a car.
If you are a helper a message will popup(something like this): [HELP] %s is requesting help! Reason: I don't know where to buy a car. Then the helper with type /answer <PLAYER ID>.
After the help request is accepted, the helper and requester will now be able to communicate in a kind off private chat.
I do system ..
If player call you , you do /answer id
and open you new chat
write on the chat but this send the message for you and for the player ..
Im try this :
(But have bags ...)
OnPlayerText:
PHP Code:
PHP код:
if(HelperChat[playerid] == 1)
{
format(str,sizeof(str),"[HelperChat] Player %s[%d] || %s",GetName(playerid),playerid,text);
SendClientMessage(playerid,Orange,str);
if(IsPlayerHelper(playerid))
{
format(str,sizeof(str),"[HelperChat] Helper %s[%d] || %s",GetName(playerid),playerid,text);
SendClientMessage(playerid,Orange,str);
return 0;
}
}
PHP код:
HelperChat[playerid] 1 = HelperChat[id] = 1;
Let's make it clear:
A player needs help with buying a car, so that player uses: /help I don't know where to buy a car.
If you are a helper a message will popup(something like this): [HELP] %s is requesting help! Reason: I don't know where to buy a car. Then the helper with type /answer <PLAYER ID>.
After the help request is accepted, the helper and requester will now be able to communicate in a kind off private chat.