31.08.2009, 13:22
How to do that? Iґm using seifadmin. A command looks like that:
Just like this way:
Player1: /irc hello
Message to player1:
Player1 on IRC: hello
Message to all admins: Player1 on IRC: hello
Code:
if(strcmp(cmd, "/drugs", true) == 0) // Will make the player invinsible until death
{
if (AccountInfo[playerid][AdminLevel] > 1 || IsPlayerAdmin(playerid))
{
SetPlayerHealth(playerid,999999999); // max HP
Drugs[playerid] = 1;
SendClientMessage(playerid, GREEN, "You are now high on drugs...");
}
else SendClientMessage(playerid, RED, "Drugs are bad for you!");
return 1;
}
Player1: /irc hello
Message to player1:
Player1 on IRC: hello
Message to all admins: Player1 on IRC: hello

