PDA

View Full Version : Mask Stranger [ID] Help me.


yaron0600
11/06/2013, 11:30 AM
How can I do in that when player just talk says : Stranger[HisID] .........

Heres the code :

else if(PlayerInfo[playerid][pMask] == 1)
{
format(string, sizeof(string), "Stranger says: %s", text);
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_F ADE4,COLOR_FADE5);
}

yaron0600
11/06/2013, 01:11 PM
Anybody ?

IstuntmanI
11/06/2013, 01:47 PM
Replace
format(string, sizeof(string), "Stranger says: %s", text);
with
format(string, sizeof(string), "Stranger[%d]: %s", playerid, text);

PaulDinam
11/06/2013, 01:47 PM
format(string, sizeof(string), "Stranger[%d] says: %s", playerid, text);


do you mean the player ID?

yaron0600
11/06/2013, 01:58 PM
Yeah lol ty.