16.09.2009, 17:50
This code should work, but does not work.
/aap command was defined in gamemode.
In addition, these works:
/aap command was defined in gamemode.
In addition, these works:
pawn Код:
public SetPlayerPos(playerid, Float:x, Float:y, Float:z)
{
new anas[256];
format(anas,sizeof(anas),"/setplayerpos %d %f %f %f", playerid, x, y, z);
SendCommand(anas);
return 1;
}
public SetPlayerHealth(playerid, Float:health)
{
new anas[256];
format(anas,sizeof(anas),"/setplayerhealth %d %f", playerid, health);
SendCommand(anas);
return 1;
}
public SetPlayerArmour(playerid, Float:armour)
{
new anas[256];
format(anas,sizeof(anas),"/setplayerarmour %d %f", playerid, armour);
SendCommand(anas);
return 1;
}
public SetPlayerName(playerid, name[])
{
new anas[256];
format(anas,sizeof(anas),"/setplayername %d %s", playerid, name);
SendCommand(anas);
return 1;
}
public SetPlayerSpecialAction(playerid, actionid)
{
new anas[256];
format(anas,sizeof(anas),"/spsa %d %i", playerid, actionid);
SendCommand(anas);
return 1;
}
public SetMySpecialAction(actionid)
{
new anas[256];
format(anas,sizeof(anas),"/smsa %i", actionid);
SendCommand(anas);
return 1;
}