22.03.2016, 14:23
PHP код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == KEY_SUBMISSION)
{
TextDrawShowForPlayer(playerid, Textdraw4);
TextDrawShowForPlayer(playerid, Textdraw6);
SelectTextDraw(playerid, COLOR_GREY);
}
return 1;
}
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(clickedid == Textdraw4)
{
SendClientMessage(playerid, 0xFFFFFFAA, "You clicked on a Textdraw4.");
CancelSelectTextDraw(playerid);
}
else if(clickedid == Textdraw6)
{
SendClientMessage(playerid, 0xFFFFFFAA, "You clicked on a Textdraw6.");
CancelSelectTextDraw(playerid);
}
return 1;
}
Sorry my bad english :c