04.04.2010, 15:09
How to make a welcome message? Plies code there?
new welmessage[128]; new pNamE[MAX_PLAYER_NAME]; GetPlayerName(playerid,pName,sizeof(pNamE)); format(welmessage,sizeof(welmessage),"Welcome To Our Server %s,pNamE); SendClientMessage(playerid,COLOR_RED,welmessage);
Originally Posted by !Vampire!
add this under OnPlayerConnect :
Код:
new welmessage[128]; new pNamE[MAX_PLAYER_NAME]; GetPlayerName(playerid,pName,sizeof(pNamE)); format(welmessage,sizeof(welmessage),"Welcome To Our Server %s,pNamE); SendClientMessage(playerid,COLOR_RED,welmessage); |
Originally Posted by !Vampire!
add this under OnPlayerConnect :
Код:
new welmessage[128]; new pNamE[MAX_PLAYER_NAME]; GetPlayerName(playerid,pName,sizeof(pNamE)); format(welmessage,sizeof(welmessage),"Welcome To Our Server %s,pNamE); SendClientMessage(playerid,COLOR_RED,welmessage); |
new pNamE[MAX_PLAYER_NAME]; GetPlayerName(playerid,pNamE,sizeof(pNamE)); format(welmessage,sizeof(welmessage),"Welcome To Our Server %s,pNamE); SendClientMessage(playerid,0xFFFF00AA,welmessage);
Originally Posted by !Vampire!
use this :
Код:
new pNamE[MAX_PLAYER_NAME]; GetPlayerName(playerid,pNamE,sizeof(pNamE)); format(welmessage,sizeof(welmessage),"Welcome To Our Server %s,pNamE); SendClientMessage(playerid,0xFFFF00AA,welmessage); |
new pNamE[MAX_PLAYER_NAME]; GetPlayerName(playerid,pNamE,sizeof(pNamE)); format(welmessage,sizeof(welmessage),"Welcome To Our Server %s",pNamE); SendClientMessage(playerid,0xFFFF00AA,welmessage);
Originally Posted by !Vampire!
oh sorry i forgot something xD :
Код:
new pNamE[MAX_PLAYER_NAME]; GetPlayerName(playerid,pNamE,sizeof(pNamE)); format(welmessage,sizeof(welmessage),"Welcome To Our Server %s",pNamE); SendClientMessage(playerid,0xFFFF00AA,welmessage); |
new welmessage[128]; new pNamE[MAX_PLAYER_NAME]; GetPlayerName(playerid,pNamE,sizeof(pNamE)); format(welmessage,sizeof(welmessage),"Welcome To Our Server %s",pNamE); SendClientMessage(playerid,COLOR_RED,welmessage);