COMMAND:dosomething(playerid, params[])
{
new id;
if(!sscanf(params, "u", id))
{
SendClientMessage(playerid, 0xFF0000FF, "USAGE: /dosomething [playerid]");
return 1;
}
if(id == INVALID_PLAYER_ID)
SendClientMessage(playerid, 0xFF0000FF, "There is no such player :]");
return 1;
}
// Do something for player with ID 'id'.. Basically.. You can do WHATEVER :D
return 1;
}