Author Topic: Question about spawned as XXX  (Read 4075 times)

0 Members and 2 Guests are viewing this topic.

Offline VC[88]PD

  • Wiseguy
  • **
  • Posts: 52
    • View Profile
Question about spawned as XXX
« on: February 14, 2013, 01:25:36 pm »
I've written this.But It isn't working.Help me please :-\
[pawn]format( szMsg, sizeof( szMsg ), "%s spawned as [ %s ]", gPlayers[ playerid ],gSkins[ skinid ] );[/pawn]

Offline Doom

  • Made Man
  • ***
  • Posts: 105
    • View Profile
Re: Question about spawned as XXX
« Reply #1 on: February 14, 2013, 02:53:03 pm »
Just add this on your Playerspawn under that line [pawn]SendClientMessageToAll(COLOR_BLUE, szMsg);[/pawn]

You can use whatever color you want.
« Last Edit: February 14, 2013, 04:35:00 pm by Doom »

Offline kkkk

  • Street Thug
  • *
  • Posts: 32
    • View Profile
Re: Question about spawned as XXX
« Reply #2 on: February 14, 2013, 06:08:04 pm »
 :)

Offline VC[88]PD

  • Wiseguy
  • **
  • Posts: 52
    • View Profile
Re: Question about spawned as XXX
« Reply #3 on: February 15, 2013, 09:37:29 am »
Just add this on your Playerspawn under that line [pawn]SendClientMessageToAll(COLOR_BLUE, szMsg);[/pawn]

You can use whatever color you want.
I’ve added it ,just not show that ,ok?

Offline VC[88]PD

  • Wiseguy
  • **
  • Posts: 52
    • View Profile
Re: Question about spawned as XXX
« Reply #4 on: February 15, 2013, 09:38:38 am »
:)
Eng:how to solve?
Chn:怎么解决?

Offline dream

  • Street Thug
  • *
  • Posts: 7
    • View Profile
Re: Question about spawned as XXX
« Reply #5 on: February 15, 2013, 10:45:42 am »
[pawn]public OnPlayerSpawn(playerid,classid,teamid)/*当一个玩家开此游戏*/
{
new szMsg[256],plname[24];
   GetPlayerName(playerid,plname,24);
   format(szMsg,256,"%s spawned.",plname);
   SendClientMessageToAll(COLOR_YELLOW,szMsg);
   return 1;
}[/pawn]
这应该可以
Sorry for my bad English

Offline VC[88]PD

  • Wiseguy
  • **
  • Posts: 52
    • View Profile
Re: Question about spawned as XXX
« Reply #6 on: February 15, 2013, 10:54:26 am »
[pawn]public OnPlayerSpawn(playerid,classid,teamid)/*当一个玩家开此游戏*/
{
new szMsg[256],plname[24];
   GetPlayerName(playerid,plname,24);
   format(szMsg,256,"%s spawned.",plname);
   SendClientMessageToAll(COLOR_YELLOW,szMsg);
   return 1;
}[/pawn]
这应该可以
‘
但是我要SPAWNED AS的。这东西谁不会啊。。。。

Offline VC[88]PD

  • Wiseguy
  • **
  • Posts: 52
    • View Profile
Re: Question about spawned as XXX
« Reply #7 on: February 15, 2013, 10:54:48 am »
[pawn]public OnPlayerSpawn(playerid,classid,teamid)/*当一个玩家开此游戏*/
{
new szMsg[256],plname[24];
   GetPlayerName(playerid,plname,24);
   format(szMsg,256,"%s spawned.",plname);
   SendClientMessageToAll(COLOR_YELLOW,szMsg);
   return 1;
}[/pawn]
这应该可以
‘
但是我要SPAWNED AS的。这东西谁不会啊。。。。
你这只是最原始的SPAWN。。。

Offline dream

  • Street Thug
  • *
  • Posts: 7
    • View Profile
Re: Question about spawned as XXX
« Reply #8 on: February 15, 2013, 12:01:34 pm »
[pawn]public OnPlayerSpawn(playerid,classid,teamid)/*当一个玩家开此游戏*/
{
new szMsg[256],plname[24];
   GetPlayerName(playerid,plname,24);
   format(szMsg,256,"%s spawned.",plname);
   SendClientMessageToAll(COLOR_YELLOW,szMsg);
   return 1;
}[/pawn]
这应该可以
‘
但是我要SPAWNED AS的。这东西谁不会啊。。。。
你这只是最原始的SPAWN。。。
那没办法,我也同求这个啊
Sorry for my bad English