22.02.2011, 20:08
(
Последний раз редактировалось grand.Theft.Otto; 24.02.2011 в 11:50.
)
In my admin script I have /slap and other commands too, but I want to do something specific.
When I /slap them, I want it to show this game text on their screen:
I already have a reason that shows why I slapped them in the chat using SendClientMessageToAll but I also want it to show like the above picture on the player's screen that is being slapped, but the problem is instead of it showing the red "Admin Slap" message and white reason, it shows up like this with the ugly yellow default colour:
I'm not sure what I'm doing wrong, but here is what the code looks like:
(Scroll RIGHT -> to see the rest of the code)
On the 1st Pawn line, that's the text that shows up in the chat to everyone, which works FINE.
The 2nd line shows the game text for the specific player, and as I mentioned earlier, it only shows up with the default yellow colour. Note on the second line I have the ~r~ and ~w~ params to make the text red and white just like in the first picture, except I did /announce to show what I want it too look like. The second pic shows what happened when i did /slap [reason] and what it looked like.
Sorry for so much info, but I hope you understand me Let me know if you don't.
When I /slap them, I want it to show this game text on their screen:
I already have a reason that shows why I slapped them in the chat using SendClientMessageToAll but I also want it to show like the above picture on the player's screen that is being slapped, but the problem is instead of it showing the red "Admin Slap" message and white reason, it shows up like this with the ugly yellow default colour:
I'm not sure what I'm doing wrong, but here is what the code looks like:
pawn Код:
format(string,sizeof(string),"**SLAP: %s (%d) (ADMIN SLAP) %s ",playername,player1,params[2]); SendClientMessageToAll(COLOR_PINK,string);
format(string,sizeof(string),"~r~admin slap: ~w~%s ",params[2]); GameTextForPlayer(playerid,params[2],3000,1);
On the 1st Pawn line, that's the text that shows up in the chat to everyone, which works FINE.
The 2nd line shows the game text for the specific player, and as I mentioned earlier, it only shows up with the default yellow colour. Note on the second line I have the ~r~ and ~w~ params to make the text red and white just like in the first picture, except I did /announce to show what I want it too look like. The second pic shows what happened when i did /slap [reason] and what it looked like.
Sorry for so much info, but I hope you understand me Let me know if you don't.