11.08.2012, 13:05
Hello , i run a 20port server in my home , i will find host but for now i am ok , i made something and i need some help to do my work better
when i type /help it appears on chat , i want it middle in the screen
anyone help me to do it better !
sorry for my bad engls
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/Heal", cmdtext, true, 5) == 0) { SetPlayerHealth(playerid,100); SendClientMessage(playerid,0xaa3333a, "Life for you!"); return 1; } if (strcmp("/kill", cmdtext, true, 5) == 0) { SetPlayerHealth(playerid,0); SendClientMessage(playerid,0xaa3333aa, "See you in hell!"); return 1; } if (strcmp("/Help", cmdtext, true, 5) == 0) { SendClientMessage(playerid,0xaa3333a,"=====[RULES]====="); SendClientMessage(playerid,0xaa3333a,"Respect Admins + Players"); SendClientMessage(playerid,0xaa3333a,""); SendClientMessage(playerid,0xaa3333a,"Dm allowded only in dm events!"); SendClientMessage(playerid,0xaa3333a,"==========================================="); SendClientMessage(playerid,0xaa3333a,"=====[COMMANDS]====="); SendClientMessage(playerid,0xaa3333a,"/Cmds all commands"); SendClientMessage(playerid,0xaa3333a,"/Teles all teleports"); SendClientMessage(playerid,0xaa3333a,"Car help : /v vehicle menu /tcar 1-10 a tuned car ! /car [name] a car ! "); return 1; } return 0;
anyone help me to do it better !
sorry for my bad engls