Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: VC[88]PD on February 14, 2013, 01:25:36 pm

Title: Question about spawned as XXX
Post by: VC[88]PD 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]
Title: Re: Question about spawned as XXX
Post by: Doom 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.
Title: Re: Question about spawned as XXX
Post by: kkkk on February 14, 2013, 06:08:04 pm
 :)
Title: Re: Question about spawned as XXX
Post by: VC[88]PD 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?
Title: Re: Question about spawned as XXX
Post by: VC[88]PD on February 15, 2013, 09:38:38 am
:)
Eng:how to solve?
Chn:怎么解决?
Title: Re: Question about spawned as XXX
Post by: dream 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]
这应该可以
Title: Re: Question about spawned as XXX
Post by: VC[88]PD 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的。这东西谁不会啊。。。。
Title: Re: Question about spawned as XXX
Post by: VC[88]PD 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。。。
Title: Re: Question about spawned as XXX
Post by: dream 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。。。
那没办法,我也同求这个啊