02.03.2018, 04:27
Quote:
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; } |
For checking FPS, see this. Is there a specific reason you wish to limit it?