|
发表于 2009-9-21 12:34:00
|
显示全部楼层
来自 中国–福建–漳州
- public xxx(id) {
- format(msg, 255, "^x03%s^x01 捡到 ^x04%d^x01 金钱", name, usergetmoney);
- new maxplayers = get_maxplayers();
- new team = get_user_team(ptd);
- new team2;
- for(new i=1;i<=maxplayers;i++)
- {
- team2 = get_user_team(i);
- if(team2==team || (team2!=1 && team2!=2))
- client_color(i, ptd, msg);
- }
- }
- public client_color(playerid,colorid,msg[])
- {
- message_begin(playerid?MSG_ONE:MSG_ALL, get_user_msgid("SayText"), {0,0,0}, playerid)
- write_byte(colorid)
- write_string(msg)
- message_end()
- }
复制代码 |
|