15.08.2010, 14:59
Some codes by me.
Television Head:
Remove the TV Head:
Nationality code:
Example for this:
IV-MP Messages
A little code, for IV-MP fans.
Example for this:
or
Good fun with there functions!
Television Head:
Код:
if(!strcmp("/tv-head", cmdtext, true)) return SetPlayerHoldingObject(playerid, 1518, 15, 0, 0, 0.3);
Код:
if(!strcmp("/tvhead-off", cmdtext, true)) return StopPlayerHoldingObject(playerid);
Nationality code:
Код:
public SetPlayerNameWithCountry(playerid, country[]); public SetPlayerNameWithCountry(playerid, country[]) { new string[128], playername[16]; GetPlayerName(playerid, playername, 16); format(string, 128, "[%s]%s", country, playername); SetPlayerName(playerid, string); return 1; }
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp("/im-hungarian", cmdtext, true)) return SetPlayerNameWithCountry(playerid, "HUN"); return 0; }
IV-MP Messages
A little code, for IV-MP fans.
Код:
stock SendPlayerMessage(playerid, msg[], color = 0xFFFFFFAA) return SendClientMessage(playerid, color, msg); stock SendMessageToAll(msg[], color = 0xFFFFFFAA) return SendClientMessageToAll(color, msg);
Код:
SendPlayerMessage(playerid, "This is an white message! :D");
Код:
SendPlayerMessage(playerid, "This is a lightblue message! :D", 0x33CCFFAA);