A few question - new to scripting.
#1

Well, hello to everyone who's going to read this thread, and actually help, I'll appreciate everyone.
As I mentioned in the title, I am new to scripting and now working on my own simple DM server script, and I've a few questions, so without too much talking, let me just ask the question.

1. How do I make every player be visible on map, with a random color. (Most DM servers.)
2. When choosing class at the beggining, how do I make every persons class be displayed.
Example: When I am choosing a player, for a few seconds there will be a green text saying " Grove St' " and etc...
3. When at the beggining of the script I post all the #define COLOR_XXX and I type for examply SendClientMessage, it sais the color (function) isn't defined, how do I fix all those?
4. And how do I create a dialog (menu) exactly what I have to do?

Thank you to everyone who's going to answer.
Reply
#2

Please don't post in italics - it makes it harder to read.


1. Players are given 'random' colors defaultly in SA:MP and are always visible. Your script must be changing this?

2. Using GameTextForPlayer under OnPlayerRequestClass

3. Should be like this:
pawn Код:
// Outside callbacks etc.
#define COLOR_WHITE 0xFFFFFFFF

// Somewhere in your code
SendClientMessage(playerid, COLOR_WHITE, "Hello.");
4. ShowPlayerDialog - see the wiki.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)