19.03.2012, 05:20
This doesn't do much of anything in game. But I compiled it without errors. It's supposed to let the player put in /rcon onduty <the player's ID> What could keep this from working in game?
Код:
public OnRconCommand(cmd[])
{
new acmd[280], idx;
acmd = strtok(cmd, idx);
if(!strcmp(acmd,"/onduty",true))
{
new Text3D:label = Create3DTextLabel("Admin On Duty", 0x990000FF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label, idx, 0.0, 0.0, 0.6);
}
return 1;
}


