SA-MP Forums Archive
Mask Stranger [ID] Help me. - 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: Mask Stranger [ID] Help me. (/showthread.php?tid=443274)



Mask Stranger [ID] Help me. - yaron0600 - 11.06.2013

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_FADE4,COLOR_FADE5);
	}



Re: Mask Stranger [ID] Help me. - yaron0600 - 11.06.2013

Anybody ?


Re: Mask Stranger [ID] Help me. - IstuntmanI - 11.06.2013

Replace
pawn Код:
format(string, sizeof(string), "Stranger says: %s", text);
with
pawn Код:
format(string, sizeof(string), "Stranger[%d]: %s", playerid, text);



Re: Mask Stranger [ID] Help me. - PaulDinam - 11.06.2013

pawn Код:
format(string, sizeof(string), "Stranger[%d] says: %s", playerid, text);
do you mean the player ID?


Re: Mask Stranger [ID] Help me. - yaron0600 - 11.06.2013

Yeah lol ty.