Okay, could use some help in sending a global message
#1

Hello guys, welcome me to the world of SAMP scripting..

Okay, so I'm helping a friend to make a small TDM script. He's done the mapping and all that, and I made the player classes...

I just want to ask question, that when a person chooses a team, I want a message to be displayed saying

'Player 1 has joined the Army'

I'm confused, but can anyone tell me if this will work, and if not, what will?I have 2 teams, Army and SWAT.

OnPlayerSpawn(playerid)
if(classid == 1 )
print(ID playerid has joined classid)


Sorry if this is a newbie question because I AM a newbie.

Thanks in advance for whoever helps.


Reply
#2

Use GetPlayerTeam, GetPlayerName and SendClientMessageToAll

try to look on wiki you gonna find out there how to use those :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)