26.01.2011, 22:24
Ok, and for example if i want se this command or an other normal command like:
Now i only can use it at me but how can i use it in others? like /heal playerid ?
pawn Код:
#include <a_samp>
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Some Owner CMDS by Ricardo_Manuel");
print("--------------------------------------\n");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/heal", true) == 0)
{
if(!IsPlayerAdmin(playerid)); return SendClientMessage(playerid, 0xFF4444FF, "You Have Heal A Player");
SetPlayerHealth(playerid, 100);
return 1;
}
return 0;
}