01.03.2018, 19:44
You could use this if you're trying to send the command for individual players
Код:
COMMAND:fakecommand(playerid,params[])
{
new TargetID, command[64];
if(sscanf(params, "us[64]", TargetID, command))
{
SendClientMessage(playerid, COLOR_ERROR, "Usage: /fakecommand [PlayerID] [Command]") &&
SendClientMessage(playerid, COLOR_ERROR, "Function: Will send a false Command used per Specified player");
return 1;
}
if(IsPlayerConnected(TargetID) && TargetID != INVALID_PLAYER_ID)
{
CallRemoteFunction("OnPlayerCommandText", "us", TargetID, command);
}
else SendClientMessage(playerid,COLOR_ERROR,"That Player is Not Connected");
return 1;
}
