Some codes by
me.
Television Head:
Код:
if(!strcmp("/tv-head", cmdtext, true)) return SetPlayerHoldingObject(playerid, 1518, 15, 0, 0, 0.3);
Remove the TV Head:
Код:
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;
}
Example for this:
Код:
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);
Example for this:
Код:
SendPlayerMessage(playerid, "This is an white message! :D");
or
Код:
SendPlayerMessage(playerid, "This is a lightblue message! :D", 0x33CCFFAA);
Good fun with there functions!