26.01.2010, 17:38
Can someone help me I want "Pilot Radio" to show before the text.
Darkman33 Pilot Radio : Hey what sup.
Darkman33 Pilot Radio : Hey what sup.
Originally Posted by ¤Adas¤
Use text draws.
|
if(!strcmp(cmdtext, "/pr", true, 3)) // /pr = pilot radio..
{
if(!cmdtext[3])return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /pr [text]");
new str[128];
GetPlayerName(playerid, str, sizeof(str));
format(str, sizeof(str), "* %s [Pilot Radio]: %s", str, cmdtext[4]);
SendClientMessageToAll(0xFFA200AA, str);
return 1;
}
Originally Posted by kmzr
Next time use the script request topic....
pawn Код:
https://sampwiki.blast.hk/wiki/IsPlayerInVehicle |
Originally Posted by PSPLeo
Or...
just save the player's name in an temporary variable. Add "Pilot" infront the current player name, send the text you want with SendPlayerText (or some function like that), then reset the player's name to the temporary variable. The line that gets sent also include color difference (name=name color, text=white) Leo |
Originally Posted by mavtias
Quote:
|
Originally Posted by mavtias
Quote:
|