22.05.2011, 18:24
Hello guys, does anybody know how to create a chat bubble with a command?
I tried it, but the server crashed when using the code above. I know that I probably failed hardly with that.
pawn Код:
dcmd_headtext(playerid,params[]) {
if(PlayerInfo[playerid][Level] >= 1) {
if(strlen(params) > 128) return 0;
new to_others[MAX_CHATBUBBLE_LENGTH+1];
SendClientMessage(playerid, red, "You have set your head text message to %s",params);
format(to_others,MAX_CHATBUBBLE_LENGTH, "%s",params);
return SetPlayerChatBubble(playerid,to_others,red,35.0,10000);
} else return SendClientMessage(playerid,red,"ERROR: Your level is not high enough");
}